Re: [PHP] REGEX prob

2001-02-18 Thread n e t b r a i n
Hi Christian, >$html_code = eregi_replace (..., $html_code); arghhh ... I'm so stupid !! Yes, u're right ... really, many thanks max -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP] REGEX prob

2001-02-18 Thread Christian Reiniger
On Sunday 18 February 2001 19:54, n e t b r a i n wrote: > >> function change_sess(&$html_code){ > >>if(eregi("&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}",$html_code)){ > >> > >> str_replace("&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}"," >>l() ;?>", $html_code); > > > >str_replace doesn't know ab

RE: [PHP] REGEX prob

2001-02-18 Thread ..s.c.o.t.t..
); } else { fwrite($f, $html); fclose($f); } return 1; } ?> > -Original Message- > From: n e t b r a i n [mailto:[EMAIL PROTECTED]] > Sent: Saturday, February 17, 2001 12:49 > To: [EMAIL PROTECTED] > Subject: [PHP] REGEX prob > > > Hi all, &g

Re: [PHP] REGEX prob

2001-02-18 Thread n e t b r a i n
Hi Christian, >> function change_sess(&$html_code){ >> if(eregi("&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}",$html_code)){ >> >> str_replace("&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}",">;?>", $html_code); >str_replace doesn't know about regular expressions, so it tries to find >the literal st

Re: [PHP] REGEX prob

2001-02-17 Thread Christian Reiniger
On Saturday 17 February 2001 21:49, n e t b r a i n wrote: > function change_sess(&$html_code){ > if(eregi("&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}",$html_code)){ > > str_replace("&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}",";?>", $html_code); str_replace doesn't know about regular expressio

[PHP] REGEX prob

2001-02-17 Thread n e t b r a i n
Hi all, I'm trying to match a particular piece of string in a big string using a regex in order to change it whith another value ... I mean: eg: $html="Lnk "; function change_sess(&$html_code){ if(eregi("&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}",$html_code)){ str_replace("&flag=[0-9]{