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


in reply to Regex copy and paste help

HtorneDK:

I'd suggest something like this:

Keep two sets of fields: the temporary set and the full set you're building.

Finally, when you're done, if you have anything in your full set, process it.

...roboticus

When your only tool is a hammer, all problems look like your thumb.