Jump to content

need help with a pattern


mraza

Recommended Posts

Hi I am trying to match all <font> tags in an html page but getting empty arrays. in my html page font tags look like this

<font style="font-family:arial; color:#000000; font-size:18px; font-weight:bold;">Filename:</font> <font style="font-family:arial; color:#FF6700; font-size:22px; font-weight:bold;">filename.jpg</font><br />

 

and i tried with

preg_match_all('%<\font[^>]*?style="[^"]*"[^>]*>(.*?)<\font>%si',$url,$match);

 

Please any help.. Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/214932-need-help-with-a-pattern/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.