$html = '<select name="country_id">
<option value="vi">Vietnam</option>
<option value="en">English</option>
<option value="fr">France</option>
</select>';
preg_match('/<select name="country_id">(.*)<\/select>/msu', $html, $matches);
print_r($matches);
Title:
PHP preg_match multiple lines
Description:
$html = '<select name="country_id"> <option value="vi">Vietnam</option> <option value...
...
Rating:
4