-
2 Comments
Tom
on 11 Feb 2012
Wait... how is this:
s2 = regexprep(s1,'[aeiouAEIOU]','');
shorter than this?
s2 = s1(regexpi(s1,'[^aeiou]'));
Ben Ausdenmoore
on 15 Apr 2012
@Tom
I believe it is because the regexpi would be the same as including the 'ignorecase' option from regexprep command (including that makes the size 15).
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!