RegEx help (one more time)
| From: | Ron dot Herhuth at tatumpartners dot com | Date: | Tue, 20 Apr 2004 15:00:54 +0000 |
| Subject: | RegEx help (one more time) | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-23496@lists.php.net to get a copy of this message | ||
I have been trying to learn RegEx but I seem to be coming up just a bit
short. The pattern I'm looking for is:
xxxx-xxx-xxx-xxx
This is what I tried but obviously it did not work:
if(preg_match("^\d{4}\/\-\d{3}\/\-\d{3}\/\-\d{3}^",$val))
Any help would be greatly appreciated,
Ron