${ ($acc =~ /(^USA|BRA|CAN)?(.*?)(XY)?$/) ? $2 : $acc } [download]
In reply to Regular Expression Translation Help! by Anonymous Monk