JackOfAllTrades, on 10 October 2012 - 09:43 AM, said:
Your preg_match regex is wrong. Read the manual page again; you don't have delimiters.
You need to learn to debug, instead of continually returning here with the ever helpful "still not working". Print things! Log things!
The preg_match I used was directly copied from the instructor. He did the phone check in class as an example and has a PowerPoint with this exact same structure.
I had a look at this: http://php.net/manua....preg-match.php
and from this line: int preg_match ( string $pattern , string $subject [, array &$matches [, int $flags = 0 [, int $offset = 0 ]]] ) it looks to me as if I've done it properly.
Unless you mean I need to do this: