![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: !preg_match Regex not compiling
From: Mike Willbanks <pencap@gmail.com>
Date: Fri Dec 23 2005 - 01:47:19 CET
> I ran across this code, and it kind of made me nervous: (as an email
Although there is an error after the first preg match the single pipe
> 2) I believe the 2nd use of preg_match was the one that caused a
if(preg_match("/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/"
You can also do validation techniques like getting the MX record and
Mike
|