[nycphp-talk] CSV Regex
Adam Maccabee Trachtenberg
adam at trachtenberg.com
Fri Feb 27 17:40:22 EST 2004
On Fri, 27 Feb 2004, Chris Shiflett wrote:
> --- Hans Zaunere <hans not junk at nyphp.com> wrote:
> > I'm looking to parse a CSV file and figured there must be a smooth
> > regex for the job.
>
> Any reason why fgetcsv() doesn't work for you?
>
> http://www.php.net/fgetcsv
>
> I've always found it to do a fine job, plus it's very fast.
What Chris said, but if you really want a regex, I suggest the one
from Jeff Friedl's "Mastering Regular Expressions." The code examples
are available online at:
http://www.regex.info/listing.cgi?ps=213&pe=220
-adam
--
adam at trachtenberg.com
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!
More information about the talk
mailing list