This is a discussion on RE: [PHP] Re: Match anything between two " that is not a " exceptifit is escaped... within the PHP General forums, part of the PHP Programming Forums category; Thanks a lot Max (and Jochem), you solved my issue. Cheers from Bordeaux in France ! -- Mathieu, learning everyday. -----Message d'...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Thanks a lot Max (and Jochem), you solved my issue.
Cheers from Bordeaux in France ! -- Mathieu, learning everyday. -----Message d'origine----- De*: Max Antonov [mailto:idler@instanceof.ru] Envoyé*: Thursday, January 17, 2008 12:36 PM À*: php-general@lists.php.net Objet*: Re: [php] Re: Match anything between two " that is not a " exceptifit is escaped... Jochem Maas writes: > attend? don't understand what you mean BUT you have given the OP the > answer by changing his regexp to include a [negative] look behind assertion > for the backslash. :-) I hope, my regular expression answer the purpose, than need Mathieu (what mean abbreviation OP? can send direcly to my mailbox) -- Max Anotnov (idler at instanceof dot ru) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
|||
|
mathieu leddet schreef:
> Thanks a lot Max (and Jochem), you solved my issue. > > Cheers from Bordeaux in France ! send us a bottle of your finest ;-) PS - you solved the issue but did you learn what a [negative] look behind assertion is? I didn't give you the regexp in the hope you'd be able to figure it out yourself once you knew the terminology to search for. > > -- > Mathieu, learning everyday. > > -----Message d'origine----- > De : Max Antonov [mailto:idler@instanceof.ru] > Envoyé : Thursday, January 17, 2008 12:36 PM > À : php-general@lists.php.net > Objet : Re: [php] Re: Match anything between two " that is not a " exceptifit is escaped... > > Jochem Maas writes: > >> attend? don't understand what you mean BUT you have given the OP the >> answer by changing his regexp to include a [negative] look behind assertion >> for the backslash. :-) > > I hope, my regular expression answer the purpose, than need Mathieu > > (what mean abbreviation OP? can send direcly to my mailbox) > |
|
|||
|
Jochem Maas :
> mathieu leddet schreef: >> Thanks a lot Max (and Jochem), you solved my issue. >> > PS - you solved the issue but did you learn what a [negative] look > behind assertion is? Mathieu, I agree with Jochem. If you periodicaly solve issues, such this - you must know about behind assertions in pcre. I ask google, and google give me good manual. http://www.pcre.org/pcre.txt open this page and use brouser search interface to find section PCREPATTERN or PCRE REGULAR EXPRESSION DETAILS it is best manual about PCRE (IMHO) But I don't know - is php pcre fully compatible with pcre library. Also see documentation in php.net :) |