$text =~ s/(\bArmy\b)|(U\.S\. Army)/US-Army/g;
Note: completely untested! Hope this helps.$text =~ s/(U\.S\.)?\bArmy/US-Army/g;
In reply to Re: Regexp dashes at boundaries
by crashtest
in thread Regexp dashes at boundaries
by cormanaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |