Not the prettiest, but this should work:
Warning: Code is untested; note the use of "should" vs. "will".$n =~ s/(?:^|([ ]))$a(?:([ ])|$)/($1 ? $1 : "") . $b . ($2 ? $2 : "" +)/ie;
In reply to Re: regexp help -- word boundaries
by northwind
in thread regexp help -- word boundaries
by water
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |