I'm trying to run this code:
And for some reason, it's replacing this:Code:$msg = preg_replace('/\[\*\](.*)/siU', '<li>\\1</li>', $msg);
WithQuote:
[*]text
??Quote:
<li></li>text
Printable View
I'm trying to run this code:
And for some reason, it's replacing this:Code:$msg = preg_replace('/\[\*\](.*)/siU', '<li>\\1</li>', $msg);
WithQuote:
[*]text
??Quote:
<li></li>text
works for me, bu tafter looking at the source I see it does what you got.
<li></li>text
let me look deeper.
take the U off the end of the reg. exp.
That fixes, that, but now, when I have:
It does something like:Quote:
[*]text[*]text[*]text
:confused: :(Quote:
<li>text[*]text[*]text</li>
It seems to work fine if I use an end tag [/*]:
Code:$msg = preg_replace('/\[\*\](.*)\[\/\*\]/isU', '<li>\\1</li>', $msg);