Re: Regular expressions
| From: | Meteorlet | Date: | Fri, 16 Jan 2004 04:41:58 +0000 |
| Subject: | Re: Regular expressions | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-22590@lists.php.net to get a copy of this message | ||
Gerardo Rojas,Hello!
you might use single quote,such as '\|'
======= 2004-01-16 02:13:45 =======
>i found out what was happening.
>
>i was using: "\|" as the or
>
>but "\" is also an escape character so i needed "\\|" as an OR.
>
>--
>Gerardo S. Rojas
>mailto: grojas@strategicinc.com
>
>
>-----Original Message-----
>From: Ignatius Reilly [mailto:ignatius.reilly@free.fr]
>Sent: Thursday, January 15, 2004 11:36 AM
>To: Gerardo Rojas; php-windows@lists.php.net
>Subject: Re: [PHP-WIN] Regular expressions
>
>
>What do you want to replace a match with?
>
>_________________________
>----- Original Message -----
>From: "Gerardo Rojas" <grojas@strategicinc.com>
>To: <php-windows@lists.php.net>
>Sent: Thursday, January 15, 2004 18:16
>Subject: [PHP-WIN] Regular expressions
>
>
>I have 2 regular expressions that work correctly. How do i combine them to
>work as 1 or 2
>
>1: /^\d\{1,2}\.
>
>2: /^\s\d\{1,2}\.
>
>i want to replace any matching pattern with either regular expression. It
>would be nice if i could put this in a single command. Currently i have
>this mapped to a Function Key "F2"
>
>
>--
>Gerardo S. Rojas
>mailto: grojas@strategicinc.com
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
= = = = = = = = = = = = = = = = = = = =
Meteorlet
meteorlet@sjtu.edu.cn
2004-01-16