I'm trying to do a match on a line from a page. At the moment I have;
$page_info =~ m,\<td\>\<font face=(.+?) size=(.+?)\>\ \;(.+?)\<\/td\>,i and $ID = $3;
The problem is, right after the 3rd (.+?) I have a </a>....however, this is not present on all the entries grabbed. I've tried doing stuff like this after it;
(\<\/a>?)
and severa lother combinations...however, none of them seem to work :-/ If I take out that code, and simply grab links that don't have the </a> in it, the regex works fine. I've never claimed to be great at regex....and I'm pretty stumped here
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
$page_info =~ m,\<td\>\<font face=(.+?) size=(.+?)\>\ \;(.+?)\<\/td\>,i and $ID = $3;
The problem is, right after the 3rd (.+?) I have a </a>....however, this is not present on all the entries grabbed. I've tried doing stuff like this after it;
(\<\/a>?)
and severa lother combinations...however, none of them seem to work :-/ If I take out that code, and simply grab links that don't have the </a> in it, the regex works fine. I've never claimed to be great at regex....and I'm pretty stumped here
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!