$re = '/<li>([a-zA-Z]+)<br \/>([a-zA-Z]+)<\/li>/m';
$str = '<div class=\'post-header\'>
<div class=\'post-header-line-1\'></div>
</div>
<div class=\'post-body entry-content\' id=\'post-body-210098160524748093\' itemprop=\'articleBody\'>
<div class="separator" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em; text-align: center;">
<br /></div>
<br />
<br />
<ul>
<li>Name<br />Location</li>
<li>Name<br />location</li>
<li>name<br />location</li>
<li>name<br />location</li>
</ul>
<br />
';
preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0);
// Print the entire match result
var_dump($matches);
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for PHP, please visit: http://php.net/manual/en/ref.pcre.php