hi there,
i need a reg exp (to do a preg_replace) to find all <font>
tags with a style="..."
attribute...
the problem is that i need to match ONLY the <font>
with a style attribute AND a value of
"height: 0;overflow: hidden;width: 0; position: absolute;"...
another problem, the style attribute may be in different positions;
ex.
<font color="white" style="height: 0;overflow: hidden;width: 0; position: absolute; font-family:courier; font-size:10px" >
or
<font style="height: 0;overflow: hidden;width: 0; position: absolute; font-family:tahoma; font-size:14px" color="red" >
EDIT: solved it with:
#</?font [^>]*\bheight: 0;overflow: hidden;width: 0; position: absolute;[^>]* >(.+</font[^>]*>|)#is
(find the tag with that style and everything it contains)
that reg exp in a preg_replace() seems to work !!