<?php

//$re = "/^(-\\w+\\s*.*)\\n*$/um"; 
$re = "/^(\\h*(?:-|&)\\h*\w+\\s*.*)\\n*$/um";
$str = "-Give on result\n-Second new text\n-The third text\n\nAnother paragraph without list.\n\n-New list here"; 
preg_match_all($re, $str, $matches);
echo "<pre>";
print_r($matches);
echo "</pre>";
$i = 0;


	echo "<ul>".preg_replace_callback($re,function($mt){return "<li>".$mt[1]."</li>";},$str)."</ul>";

