Re: Re: REGEX for phone #
| From: | Analysis & Solutions | Date: | Mon, 29 Jul 2002 13:27:46 +0000 |
| Subject: | Re: Re: REGEX for phone # | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110167@lists.php.net to get a copy of this message | ||
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 patterns
* <\/\w+>/
* |(\d{3})-\d+|Sm
http://www.php.net/manual/en/ref.pcre.php
The Pattern Syntax page has a backslashes section which states: In
particular, if you want to match a backslash, you write "\\".
Then, all of my patterns work just fine w/o escaping the backslashes.
So, uh, what are you talking about? :)
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409