Funny that my last question was on the same topic, but alas:
I'm running the following code:
preg_match('/<th.*>.*Organizer.*title=\".*\">(.*)<\/a>/mi', $file_string, $organizer);
On the following content:
<tr>
<th valign="top"> Organizer:
</th>
<td style="width:55%;"> <a href="/starcraft2/TaKe" title="TaKe">TaKe</a>
</td></tr>
And I can't for the life of me figure out why it's not working. I can get it to match Organizer: with the regexp '/.*Organizer', but it seems that as soon as there's a new line it stops to work, despite having the /m option. Any ideas?
mbehavior is multiline.*does NOT match newline/sthe modifier you are looking for? php.net/manual/en/reference.pcre.pattern.modifiers.php<th.*>will match everything till the last>that's your problem