|  | Posted by p on 03/07/06 00:57 
> $result = preg_match("[0-9][0-9]","12")>
 > gives me an error of: Unknown modifier '['
 >
 > and
 >
 > $result = preg_match("hello","hello")
 >
 > gives me an error of: Delimiter must not be alphanumeric or backslash
 
 You still need to wrap the regex in slashes I believe:
 
 $result = preg_match("/[0-9][0-9]/","12")
 $result = preg_match("/hello/","hello")
 
 Hope that helps,
 Pete
  Navigation: [Reply to this message] |