On Wed, May 09, 2007 at 11:58:33AM -0500, Andy Lester wrote: > > foo > > bar > > names="charlie,john,ann" > > ages='20,30,40' > > > > Can anyone come up with a single regexp that I can use in a call to > > split() > > that will handle this case, or another equally elegant solution ? > > You don't want a regex. > > This format is called "CSV" for "Comma-separated values", and you > want to have a module do it for you, preferably Text::CSV_XS.
This doesn't look like proper CSV to me. The quote characters are not surrounding an entire value, but rather part of a value. Ronald _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

