in reply to Re^2: Pattern matching when there are exception strings
in thread Pattern matching when there are exception strings

Splicing out things as you suggest would leave the possibility (however remote) that a false match would be created by the pasted-together remnants. Like if you removed "XL5 ALPHA" from "ALXL5 ALPHAPHA". See my split-and-grep recommendation for a similar technique that isn't subject to the pasting problem.

Caution: Contents may have been coded under pressure.
  • Comment on Re^3: Pattern matching when there are exception strings