Jump to content

Preg Match problem


graham23s

Recommended Posts

Hi Guys,

 

i am trying to get the text between this html:

 

       <td valign="top" class="articletext">
		<li>Article Successfully Posted! Waiting for Review.</li>
       </td>

 

my expression is:

 

<?php
   // DO A PREG MATCH TO SEE THAT STATUS
   $findStatus = preg_match("/<td valign=\"top\" class=\"articletext\">(.*)</td>/", $postArticleEZ, $statusFound);
   
   print $statusFound[0];
?>

 

but i am getting this error:

 

Warning: preg_match() [function.preg-match]: Unknown modifier 't' in C:\Program Files\wamp\www\5

 

i'm not sure what i did wrong! im  a noob ont the old reg ex :)

 

thanks for any help guys

 

Graham

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/134768-preg-match-problem/
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.