Re: REGEX prob
| From: | n e t b r a i n | Date: | Sun, 18 Feb 2001 18:54:35 +0000 |
| Subject: | Re: REGEX prob | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40426@lists.php.net to get a copy of this message | ||
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}","<?=append_url()
>>;?>", $html_code);
>str_replace doesn't know about regular expressions, so it tries to find
>the literal string "&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}" in your URL
>- which it doesn't find.
>Use eregi_replace instead
Hmmmm, ok but with the eregi_replace the prob is the same ... :( no changes
are made on my cache file ...
Ideas or suggestion are very welcomed .. :)
many thanks in advance
max