![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re: CSV and regex mixupsby aquarium (Curate) |
on Jul 02, 2003 at 22:10 UTC ( #270987=note: print w/replies, xml ) | Need Help?? |
you do need to strip/convert any commas and quotes from your input or csv::text will get it wrong. you should also strip any non-printing chars and semicolons etc., ie define a strict set of characters to allow rather than dis-allowing some. this should be a no brainer for you if you just consider the input one at a time; not the entire assembled string. btw - in your regex with .? that stands for zero or one occurences of any character...not any number of characters, as i believe you intended. i think you were after .+ match one or more times.
In Section
Seekers of Perl Wisdom
|
|