Posts: 1,832
Location: Somewhere else entirely
|
Your first one is doing exactly what you meant - capitalising all the things between the h2s, including the image tag and the non-breaking space - If you don't want it capitalised you'll have to move it outside the h2, or re-write the regex to ignore things inside of other tags.
You could do the second one with just a simple text replacement:
PHP Code:
$str2 = str_replace("<IMG height=9 alt=\"\" src=\"fullPage_files/darkerbullet.gif\" width=9 border=0>","*",$str);
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';
Scribble Pad MOD for phpBB (aka MSN handwriting for forums)
Last edited by 0beron : 03-22-2006 at 02:07 PM.
|