I have this regex in PHP:
preg_match('/\[summary\](.+)\[\/summary\]/i', $data['text'], $match);
It works fine when the text between the summary tags is on one line. However, when it contains newlines, it doesn't match.
I've tried to find a correct modifier here: http://nl2.php.net/manual/en/reference.pcre.pattern.modifiers.php But the only one related to newlines is "m" and that doesn't do what I want.
How to make this work?