"Peter Cornelius" <[EMAIL PROTECTED]> writes: > @val = m/".*?",?/g; # m//g in list context returns all matches > # list gets all matches of things that begin with a double quote > # followed by any character zero or more times matching the > # minimal amount before finding a double quote followed by zero > # or more commas.
Watch out. This *requires* that all data have double quotes around it. Some data only had double quotes around it if it *needs* to have them, like if it's got embedded commas. Check your data carefully. You may be able to get away with this RE. Luck you if you can. If not, you have to use one of the CSV splitting modules. The first line works, the second one doesn't. "a", "bcd, efg, h", "c" a,"bcd, efg, h",c -- Michael R. Wolf All mammals learn by playing! [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]