I'm having some trouble trying to get my regular expression to match optional new lines in what should be an HTML parsing, BBC style tag. For instance, this works quite well.
/\[parse_html\](.+)\[\/parse_html\]/i
[parse_html]<p>This is a paragraph</p>[/parse_html]
While this doesn't work worth a darn.
[parse_html]
<p>This paragraph appears as plain text.</p>
[/parse_html]
Any suggestions would be much appreciated. 🙂