Caitlin-havener 3 Posted June 26, 2012 Report Share Posted June 26, 2012 Hey there! I'm trying to read in a csv and split the data at commas unless the string is encapsulated between double quotes. How would I do this? I know the function, its just the regular expression that confuses me! Quote Link to post Share on other sites
justsomeguy 1,135 Posted June 26, 2012 Report Share Posted June 26, 2012 There are a few user-contributed functions on this page, most of them don't use regular expressions to parse the entire line though: http://www.php.net/manual/en/function.str-getcsv.php Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.