Re: Regular expression help needed

From: Date: Tue, 28 Nov 2000 11:56:49 +0000
Subject: Re: Regular expression help needed
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27582@lists.php.net to get a copy of this message
At least in your example, you have one extra parenthesis... just before the [1-9] Also, just to make sure, I always escape any non alphanumeric chars, like the : So try with \[nodo\:([1-9]+)\|(.*)\]$ Because I guess you want to use the matched number "rodrigo" <rodrigo@shreve.net> wrote in message news:3A239485.A1C2A8E9@shreve.net... > The following regex > > \[nodo:([1-9]+\|(.*)\]$ > > should match the following string > > [nodo:4|blah] > > right? Well, it does not. Why? > > -- > ************************************ > Ivan R. Quintero E.* (507)228-3477 > Aptdo 1263 * (507)228-9105 > Balboa, Ancon * > Republic of Panama * > ************************************ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#27582) next »