I\'m trying to code a regexp to convert a block of text:
* List item * Another list item
to html:
Well, you could simply do
$text = "" . preg_replace("/\*+(.*)?/i","$1",$text) . "";
or, if you really want to use preg_replace
preg_replace
$text = preg_replace("/(\(.*?)\<\/li\>\n*)+/is","\n$1\n\n",$text);