php problem with strings
Hello
I have this problem varialble $list contains this Code:
<tr> <td><FONT COLOR="#336699"><B><b>anonymous@host2.com</b></font></b></td> Any help please ? Thank you |
I found solution
Code:
$parts = explode("</tr>", $list); |
How about something like
Code:
echo preg_replace('|<tr>.*?host2\.com.*?</tr>|', '', $list); |
your code doesn't work ... I don't know why but I had same problem using preg_match and preg_match all
perhaps because pregmatch checks only on a single line , but I am not sure . |
Quote:
Code:
echo preg_replace('|<tr>.*?host2\.com.*?</tr>|ms', '', $list); |
i didn't know the s flaf , thank you.
Where can I read on php manual about these flags ? |
All times are GMT -5. The time now is 03:46 PM. |