http://www.perlmonks.org?node_id=874628


in reply to Regular Expression Translation Help!

This statement simply removes one of "USA", "BRA" or "CAN" from the start of the string and "XY" from the end of string, if found.

  • Comment on Re: Regular Expression Translation Help!