in reply to finding nonword character at end of strings
$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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: finding nonword character at end of strings
by iakobski (Pilgrim) on Jun 26, 2001 at 14:45 UTC | |
by Hofmator (Curate) on Jun 26, 2001 at 14:51 UTC |