Saturday, December 9, 2017

get data between html and

get data between html <tag> and </tag>

$regex = '`<code>(.*?)</code>`s';

Reference:

https://stackoverflow.com/questions/9253027/get-everything-between-tag-and-tag-with-php/9253072

No comments: