Jump to content

Need help With Preg_match


Elomelo

Recommended Posts

am trying to extract data from

 

<TD><b>Premium</b> <font style="font-size:12px;">(1 days remaining - <a href="?c=premium">extend</a>)</font></TD>

 

I Need the remaining days so i tried with

preg_match('/Premium<\/b> <font style="font-size:12px;">(.*?)<a href="?c=premium">extend<\/a>/', $r1esult, $date);

 

but nothin happening  ???

 

Plus i Also Tried Another One

<TD width="175">Account created:</TD>

 

<TD><b>2007-09-21</b></TD>

 

preg_match('/<TD width="175">Account created:<\/TD>

 

<TD><b>(.*?)</b><\/TD>/', $r1esult, $date);

 

so whats the wrong am doing?

can anyone help me out?

 

Link to comment
https://forums.phpfreaks.com/topic/163793-need-help-with-preg_match/
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.