http://qs1969.pair.com?node_id=558679


in reply to How to Map Regex to Hash

I think the regex /(\d+),"(.*?)"/g will work for you. This assumes no embedded quotes, etc. The problem with yours was the parens on the outside of the regex. And that /m modifier was useless.

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart