Bluehost.com Web Hosting $6.95

RE: [PHP] Re: Match anything between two " that is not a " exceptifit is escaped...

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'...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008
mathieu leddet
 
Posts: n/a
Default RE: [PHP] Re: Match anything between two " that is not a " exceptifit is escaped...

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
Reply With Quote
  #2 (permalink)  
Old 01-17-2008
Jochem Maas
 
Posts: n/a
Default Re: [PHP] Re: Match anything between two " that is not a " exceptifitis escaped...

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)
>

Reply With Quote
  #3 (permalink)  
Old 01-17-2008
Max Antonov
 
Posts: n/a
Default Re: [PHP] Re: Match anything between two " that is not a " exceptifitisescaped...

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 :)
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 04:59 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0