ankhmor Posted September 6, 2008 Share Posted September 6, 2008 Alright, I need to match a string which is: <td colspan="2"><font style="">382 Queen St E </font></td> I'm trying to use preg_match() with the regex below "/(<td colspan=\"2\">){1}(<font style=\"\">){1}/" I get a blank result. I've tested the regex and it seems that everything works fine till i put the second " after style= Thanks. Link to comment https://forums.phpfreaks.com/topic/123042-solved-preg_match-and-regex/ Share on other sites More sharing options...
dezkit Posted September 6, 2008 Share Posted September 6, 2008 "/(<td colspan=\"2\">)(<font style=\"\">){1}(<font style=\"\">){1}/" Link to comment https://forums.phpfreaks.com/topic/123042-solved-preg_match-and-regex/#findComment-635344 Share on other sites More sharing options...
ankhmor Posted September 6, 2008 Author Share Posted September 6, 2008 "/(<td colspan=\"2\">)(<font style=\"\">){1}(<font style=\"\">){1}/" Sorry that doesnt seem to work. Link to comment https://forums.phpfreaks.com/topic/123042-solved-preg_match-and-regex/#findComment-635347 Share on other sites More sharing options...
ankhmor Posted September 6, 2008 Author Share Posted September 6, 2008 This works "/(<td colspan=\"2\">)(<font style=\"\">)*/" but it doesnt find the (<font style=\"\">) part And This works "/(<td colspan=\"2\">)(<font style=\"){1}/" but they are not exactly what i'm looking for Link to comment https://forums.phpfreaks.com/topic/123042-solved-preg_match-and-regex/#findComment-635375 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.