Topic awaiting preservation: PREG_REPLACE and escaping HTML tags (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 07-15-2003 15:27
I couldn't find this is various searches, and realize I'm probably just not using the right keywords. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 07-15-2003 15:47
Pugzly: This should work: code: $code = preg_replace("(<IMG height=23 src=\"images/printdoc.gif\" width=22 border=0> )si", "", $code);
code: $code = preg_replace("(<IMG height=23 src=\"images/(.*)\" width=22 border=0> )si", "", $code);
code: $code = str_replace("<IMG height=23 src=\"images/printdoc.gif\" width=22 border=0>", "", $code);
|
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 07-15-2003 15:58 |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 07-15-2003 16:11
Pugzly: si are pattern modifiers: |