View Single Post
Old 11-14-2007, 06:06 PM   #2 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Can you explain why you chose to tokenise the string over using regular expressions to extract the email addresses? Also, the patterns used to remove "invalid" characters and determine valid addresses are far from ideal. For example, they would allow _@-.zz but disallow me+test@domain.com (the first being an invalid address and the second a valid one).
Salathe is offline  
Reply With Quote