> -----Original Message----- > From: richard.heyes@xxxxxxxxx [mailto:richard.heyes@xxxxxxxxx] On > Behalf Of Richard Heyes > Sent: Tuesday, October 28, 2008 4:30 PM > To: VamVan > Cc: php List > Subject: Re: Regex validation > > > Hello Team of Nerds, > > Not the best way to start your request for help. > > > I need help in writing a regular expression for this: > > > > invalid character set is: > > > > > INVALID_STRING={"/","*","+","(",")","'\'","<",">",",",":",";","~","..", > ".@","@."}; > > > > I want to a pregmatch for these characters on my whole email address > and if > > match is found I need to return false. > > Based on what you've said, you might not need a regex, there may well > be an str* function that you can use. Maybe strpos(). I thought so at first, but it appears the final 3 array members of INVALID_STRING are two characters wide. That could, of course, be handled with a different algorithm from the other, one-character members. Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php