RE: [PHP] Re: regular expressions
| From: | Martin Towell | Date: | Thu, 21 Feb 2002 23:32:15 +0000 |
| Subject: | RE: [PHP] Re: regular expressions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85787@lists.php.net to get a copy of this message | ||
yeah! remember that php interprets the string first, before it gets to
reg.ex. !! That's some I keep forgetting... lol
Martin
-----Original Message-----
From: Murray Chamberlain [mailto:muzzy1@hotmail.com]
Sent: Friday, February 22, 2002 2:48 AM
To: php-general@lists.php.net
Subject: [PHP] Re: regular expressions
I think you have some un-needed code there. But anyway you might need to use
a double backslash infront of the |
If that doesn't work mail me back
Muz
"German Castro Donoso" <gecastro@dcc.uchile.cl> wrote in message
news:20020221151707.4576.qmail@pb1.pair.com...
> I have a problem with ereg function.
> In php 4.0.5 i use this
> if ( ereg("([0-9][0-9]*)\|(\w\w*)",$opcion, $registros) ) {
> ...
> }
> and no problem. But, in php 4.1.1 don't work. I think that may be the
escape
> of | character.
>
> Note: I'm looking for a | in the string. Then i need escape the |
>
> Any idea for fix it?
>
>
>
> Thanks
> German Castro
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php