How would you say: delete any and all of these from the end of the string, leading tomy $RE = qr! \b ( SA | NV | LTD | CO | LLC ) \b !ix ;
Bobs Warehouse SA LTD => Bobs Warehouse Jims Fine Wines CO LLC => Jims Fine Wines
In reply to repeatedly delete words expressed in alternation from end of string [regexp] by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |