Im haveing a small problem with a bbcode parser...
it wont parse the quote, if theres a newline or a <br /> in the quote text...
the parser just outputs the [.quote] text [/quote] in the html (ignore the . )
heres the regex function im using to parse the quote tag:
$input = preg_replace('/([quote])(.+?)([\/quote])/i', '<blockquote><i>\2</i></blockquote>',$input);
the (.+?) is supposed to be any number of any characters right? what can I put in there to include the characters in <br /> or /n ?
can anyone help?