Re: [PHP] eregi_replace / preg_match_all

2002-10-02 Thread Jennifer Swofford
Extraordinarily helpful; thank you very much! Thanks to both Mike and Kevin on this. Jen > > > Why does this work: > > > > > > $contents = > > > > > eregi_replace("(\")(.(/))*[A-Z0-9_/-]+(.gif|.jpg)", > > > "\"blah.gif", $contents); > > > > > > But this does not: > > > > > > > > preg_match_all(

RE: [PHP] eregi_replace / preg_match_all

2002-10-02 Thread Ford, Mike [LSS]
> -Original Message- > From: Jennifer Swofford [mailto:[EMAIL PROTECTED]] > Sent: 01 October 2002 21:21 > To: [EMAIL PROTECTED] > Subject: [PHP] eregi_replace / preg_match_all > > > Why does this work: > > $contents = > eregi_replace("(\")(.(

Re: [PHP] eregi_replace / preg_match_all

2002-10-01 Thread Kevin Stone
ession at the second slash. -Kevin - Original Message - From: "Jennifer Swofford" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 01, 2002 3:03 PM Subject: Re: [PHP] eregi_replace / preg_match_all > Thanks Kevin - > > Actually, I'm confused

Re: [PHP] eregi_replace / preg_match_all

2002-10-01 Thread Jennifer Swofford
delimeter apart > from the quote? > > "/(\")(.(\/))*[A-Z0-9_\/-]+(.gif|.jpg)/" > > Maybe that's it? But if so I dunno why the other > one would be working. > > -Kevin > > - Original Message ----- > From: "Jennifer Swofford" &

Re: [PHP] eregi_replace / preg_match_all

2002-10-01 Thread Kevin Stone
-Kevin - Original Message - From: "Jennifer Swofford" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 01, 2002 2:20 PM Subject: [PHP] eregi_replace / preg_match_all > Why does this work: > > $contents = > eregi_replace("(\")(.(/))*[

[PHP] eregi_replace / preg_match_all

2002-10-01 Thread Jennifer Swofford
Why does this work: $contents = eregi_replace("(\")(.(/))*[A-Z0-9_/-]+(.gif|.jpg)", "\"blah.gif", $contents); But this does not: preg_match_all("(\")(.(/))*[A-Z0-9_/-]+(.gif|.jpg)", $contents, $matches); for ($i=0; $i< count($matches[0]); $i++) { echo "matched: ".$matches[0][$i]."\n" } I get