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
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
);
}
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
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
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
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]{
6 matches
Mail list logo