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


in reply to Apply A Set Of Regexes To A String

You can assign a processed (intepreted? compiled?) regex to a variable and then reuse it as many times as you want. Seems to me that the simplest thing to do would be set up all the regexes in advance and assign each file a list of them to run through. Syntax is as follows:

http://perlmonks.thepen.com/389503.html
Is this associated with perlmonks.com?