in reply to CSV and regex mixups
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.
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: CSV and regex mixups
by cidaris (Friar) on Jul 02, 2003 at 23:29 UTC |
In Section
Seekers of Perl Wisdom