I need to modify or replace only certain html tags from a string,
eg "<FONT face=\"(somefontname)\">"
The font face could be anything, so I need to use some sort of wildcard or regex, but I can't figure it out.
I tried
$string = "<FONT face=\"Bookman Old Style\">";
$checkstring = "<FONT";
$endstring = ">";
$string_wild = $checkstring.'%'.$endstring;
if (ereg($string_wild,$string)) echo "found";
but it didn't work.
Can anyone help?
Thanks
Caz