in reply to Regexp dashes at boundaries
$text =~ s/(\bArmy\b)|(U\.S\. Army)/US-Army/g;
Note: completely untested! Hope this helps.$text =~ s/(U\.S\.)?\bArmy/US-Army/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regexp dashes at boundaries
by tlm (Prior) on Mar 17, 2005 at 23:22 UTC | |
by ww (Archbishop) on Mar 18, 2005 at 15:25 UTC | |
|
Re^2: Regexp dashes at boundaries
by cormanaz (Deacon) on Mar 17, 2005 at 22:33 UTC |