Seems like a job for ... Text::CSV(_XS)!
In reply to Re: How to get correct regex by Anonymous Monk in thread How to get correct regex by AtlasFlame