Re: regex question
| From: | Kevin Beckford | Date: | Tue, 18 Jul 2000 17:51:34 +0000 |
| Subject: | Re: regex question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7109@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: Kevin Beckford <kbeckford@bigorbit.com>
To: GPHP <php-general@lists.php.net>
Sent: Monday, July 17, 2000 1:54 PM
Subject: [PHP] regex question
> 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.
>
Still have a problem with this
> 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?
I tried LOAD DATA INFILE from mysql - I could not get it to work. the problem
is still the same as above. Anyone have any code snippets or tips that I can
try here? Situation is getting desparate...