Jump to content

[SOLVED] Script Help


ainoy31

Recommended Posts

Hello-

I have the following data I need to extract from.

 

Status:</font></span></td>
<td align="left" style="height: 18px; font-weight: normal; font-size: 10pt;">
<span id="FormView1_pro_stageLabel" wrap="false" style="display:inline-block;"><font face="Arial,Helvetica,Microsoft Sans Serif" color="#000040" size="2">DELIVERED - 12/28/2007</font></span></td>

 

I am only trying to get the word DELIVERED out of the html tags.  Also, there could be another word or two about the status.  This one just happens to be DELIVERED.  So, here is my code I am trying to capture it.

 

foreach(explode("\n",$data) as $line)
{
if(stristr($line, 'Status:'))
{
preg_match_all('#(Status):.*?(\w[a-zA-Z]/)#is', $data, $matches, PREG_SET_ORDER);
print_r($matches);
}
}

 

Much appreciation.  AM

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.