MATLAB: Modify Strings in cell array

cell string removeMATLABregexp

Hi,
I have a cell array:
b = { 'a/b/c/a'; 'k/b' ; 'c/c/d' }
I want to remove the string before the first slash.
The result should be:
b = { 'b/c/a'; 'b' ; 'c/d' }
How can I achieve the result?

Best Answer

regexprep(b,'[^/]*/', '', 'once')