And this is just a throwaway script I am working on (at least I am fairly sure it is ;-)). If it was something more permanent, I'd certainly use one of the modules you mention.
Another argument for TheDamian's PBP regex recommendation that a standard set of regex modifiers be used, even in 'throwaway' scripts. E.g., m{pattern}xms