combine two regexprep into one
5 views (last 30 days)
Daniel Shub on 3 Jun 2013
I have no idea what you are trying to do. My regex foo is weak, but I am pretty sure for your example you can just replace both lines with
selected = selected;
For a more general one line solution you could do
selected = regexprep(regexprep(selected, ' ',' '), '<.*?>','');
Are you trying to find a single regex expression that does the (non) replacement?