Re: str_replace around a character??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 If you are looking for a one liner reg ex, it may take some time. This may lead wasting your development time. Better you do the following,

1. replace the string with tokens in address.
2. Split using comma.
3. Apply common email regex.
4. Replace tokens with actual strings.
5. Rebuild/join the string with ", "

With this approach you can validate individual emails too.


Sent from a handheld device


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux