$f =~ s/\s(i|a|e|o|u|y|E):(\s|$)/ $1 /;
I also changed the \1 to a $1, since $1 will catch the matched value in parens.
Update: Of course iakobski and Hofmator are right, so don't look here, look further down.
I changed the errornous code.
In reply to Re: finding nonword character at end of strings
by busunsl
in thread finding nonword character at end of strings
by Micz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |