Re: [PHPLIB-DEV] oohforms bad escape sequence From: Massimiliano Masserelli (negro <email protected>)
Date: 10/26/99

On Tue, Oct 26, 1999 at 11:56:25AM +0200, ak <email protected> wrote:
> if (ereg("([a-zA-Z_]+)[([0-9]+)]", $el["name"], $regs)) {
>
> because [ and ] need no escape.

[ and ] do need escape in regex when they are intended to be matched
literally. PHP3 manual is not too clear on this issue, and at the moment
I don't have the time to go through php3 sources.

Kris?

Bye.

--
     Massimiliano Masserelli       |     URL:    http://www.interim.it/
     Internet Images S.r.l.        |     Tel:    +39-051-3390671
     vicolo Viazzolo, 3            |     Fax:    +39-051-557890
     40124 - Bologna - Italy       |
-------------------------------------------------------------------------------
Victory or defeat!
-
PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in
the body, not the subject, of your message.