Archive for : October, 2013

Regular Expression for html paragraph

The expression bellow can be used to extract paragraphs information from a html document. This expression can be changed to be applied to other HTML tags.


preg_match('/(]*>.*?<\/p>)/i', $subject, $matches);