Re: [PHP] Re: preg guru question

2004-02-14 Thread joel boonstra
On Sat, Feb 14, 2004 at 12:50:55AM -0500, Adam Bregenzer wrote: > As far as I could tell the regexp I posted was the only one to use a > subpattern to match the first quote type used and then re-apply that > after matching the file name: > '//i' > > I am a bit of a regular expression fan and I wou

Re: [PHP] Re: preg guru question

2004-02-13 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 lol i meant you, but i wrote the other name instead... sorry again Adam Bregenzer wrote: On Sat, 2004-02-14 at 00:24, André Cerqueira wrote: strange bug happened on my newsreader... 'joel boonstra' regex seems to be the better one hehe all others forgo

Re: [PHP] Re: preg guru question

2004-02-13 Thread Adam Bregenzer
On Sat, 2004-02-14 at 00:24, André Cerqueira wrote: > strange bug happened on my newsreader... > 'joel boonstra' regex seems to be the better one hehe > all others forgot that if u start with ', u must end with ' hehe (same > thing with " :p) As far as I could tell the regexp I posted was the onl

[PHP] Re: preg guru question

2004-02-13 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 oops... sorry strange bug happened on my newsreader... 'joel boonstra' regex seems to be the better one hehe all others forgot that if u start with ', u must end with ' hehe (same thing with " :p) i dont know why i used square brakets for \s... kinda

[PHP] Re: preg guru question

2004-02-13 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 did you post the same message 7 times? try: '; $pattern = '//i'; $matchFound = preg_match_all ($pattern, $subject, $matches, PREG_SET_ORDER); print_r($matches); //$matches[$i][1] is what really matters ?> that pattern may not be the best regex to use,