[PHP] Re: REGEX for phone #

2002-07-29 Thread Richard Lynch
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

Re: [PHP] Re: REGEX for phone #

2002-07-29 Thread Analysis Solutions
Hi Richard: On Mon, Jul 29, 2002 at 05:02:49AM -0500, Richard Lynch wrote: For starters, if Perl wants \ PHP needs \\ since \ is special in both languages. I'm curiuos what you're talking about. The manual says nothing about this in the PCRE section: Example 1. Examples of valid