I\'m trying to code a regexp to convert a block of text:
* List item * Another list item
to html:
Why don't you store the first regex in an array with preg_match_all, and glue it like this:
$list=''; $list .= implode('',$arr_regex); $list .= '';