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..
did you check the value *before* writing it to a file? before trying to solve any problem, you have to know where to look perhaps the problem lies with the file instead of the regexp. the following code worked great for me: Lnk'; $html = preg_replace('/&flag=(\d{9})&PHPSESSID=(\w{32})/', ap

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