php, codeigniter
태그와 태그사이 정규식으로 내용 추출
디츠
2016. 1. 7. 10:43
$text = "<tbody>test</tbody>";
preg_match("/<tbody>(.*?)<\/tbody>.*/s", $text, $match);
echo $match[0];