REGEX for phone #

From: Date: Sun, 28 Jul 2002 21:30:32 +0000
Subject: REGEX for phone #
Groups: php.general 
Request: Send a blank email to php-general+get-110068@lists.php.net to get a copy of this message
I'm using a regular expression (below) to check phone numbers. I'm getting an error that I can't make sense of. $regex = "^((\(\d{3}(\) -))?*\d{3}(- )\d{4},?*)+$"; Output I'm getting = Warning: REG_BADRPT in /home/basemen/public_html/verify_order.php on line 28 Anyone know what this means? I know it's not bitching about the phone number, it's bitching about the expression. But why? Some thing wrong with the expression? It works fine in PERL, which this is supposed to be compatible with. Mike

« previous php.general (#110068) next »