-
3 Comments
Harish Maradana
on 25 Aug 2014
function ans = refcn(s1)
regexprep(s1,'(?=[a-z])[^aeiou]', ' ','preservecase');
end
not working help me
Raihan Ahmed
on 30 Aug 2015
write like this
s2=regexprep(s1,'(?![aeiou])[a-z]','','ignorecase');
Modesto Rosado
on 22 Apr 2020
Raihan Ahmed, I know this comment is years old, but could you explain how the input '(?![aeiou])[a-z]' works? Obviously, MatLab recognises it as the same thing as '[b,c,d,f,g,h,j,k,l,m,n,p,q,r,s,t,v,w,x,y,z]', but what exactly is it doing?
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!