Hi,
I've been trying to understand this eregi_replace thing, but I'm stuck with the following:
I have this eregi_replace:
$text= eregi_replace("flash size=1[flash]","<object classid=\"clsid😃27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=50 height=50><param name=movie value="\\1\"><param name=quality value=high><param name=wmode value=transparent><embed src=\"\1\" width=\"50\" height=\"50\" quality=high wmode=transparent type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></embed></object>",$text);
I want the text between [flash size=1] and [/flash] to become the \1 (since it's between brackets).
(.*) is everything right?
But it gives the following error:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/sites/site95/web/ubb.php on line 52
Parse error: parse error, unexpected T_LNUMBER in /home/sites/site95/web/ubb.php on line 52
I've already tried to remove all of the \", but then I get this error:
Warning: REG_BADRPT in /home/sites/site95/web/ubb.php on line 54
I did get something to work, but it just copied the message like 10 times, and it was completey f*cked up.
Can somebody help me out?
Thanks,
Menno