Try this one:
It also captures the space or end of string and uses that rather than a space: this may or may not be what you want.$f =~ s/\s(i|a|e|o|u|y|E):(\s|$)/ $1$2/;
-- iakobski
In reply to Re: Re: finding nonword character at end of strings
by iakobski
in thread finding nonword character at end of strings
by Micz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |