Jump to content

[SOLVED] Preg_match() and regex


ankhmor

Recommended Posts

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

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.