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
Share on other sites

Thanks  rhodesa

 

btw

<TD><b>9004</b> (<a href="?c=rewards" style="font-size:12px;">redeem</a>)</TD>

 

preg_match('/<TD><b>(.*?)<\\/b> (<a href="\?c=rewards" style="font-size:12px;">redeem<\\/a>/', $r1esult, $point);

wats the wrong in it now :( thanks in advance

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.