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);

Leave a Reply

Your email address will not be published. Required fields are marked *