regex question

From: Date: Mon, 17 Jul 2000 17:54:24 +0000
Subject: regex question
Groups: php.general 
Request: Send a blank email to php-general+get-6938@lists.php.net to get a copy of this message
Ok, I give up - help! I have to read data in exported from an Outlook Express address book. I have used file() on the address book file to get in into an array. The data is CSV, and fields with commas are quoted. I am trying to use a regex to simply make a dynamic query string like this for each row. insert into $db_name('a','b',"hey, this is a quoted field with commas",.....) I am trying to use the PCRE to do this. How would I do this? ______________________________________ Kevin Beckford Programmer Big Orbit - Specializing in new media for youth www: http://www.bigorbit.com email: kbeckford@bigorbit.com [t] 416.516.0705 [f] 416.516.9256 "Intelligence is a tool used achieve goals, however goals are not always chosen wisely..."

« previous php.general (#6938) next »