|
Last updated: 02/07/2012
You can grab a chunk of text from between to html tags using this regex:
preg_match("/>([^<]{100,})</",$long_text,$matches);
where long_text is the full html, and $matches is the resulting array of matches. This matches any text between >< that is 100 characters or longer.
blog comments powered by
|