regex frustration
| From: | Jerry Lake | Date: | Wed, 28 Feb 2001 21:24:30 +0000 |
| Subject: | regex frustration | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42088@lists.php.net to get a copy of this message | ||
I've tried and tried to no avail, can someone assist
I need to select the first space in a line like the following
Nelson Bob and Mary, 123 Street st., Ashton, 555-1212
I need to replace the space between Nelson and Bob with
a comma so I can separate the first and last names in my DB
^\D*\s will select the first name and the space, but I just
need the space. any ideas?
Jerry Lake - jerryl@europa.com
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com