MATLAB: Extracing the part of the string from cell array

extracing the part of the string from cell array

I have a cell array a = {'abc__first__element' ; 'def__second__element'; ghi__third__element'}
I want to extract the string after first '__'
My final answer should be a = {'first__element'; 'second__element'; 'third__element'}
How can do this?
Thanks a lot

Best Answer

regexp(a,'(?<=__)(.*)','match')