Using PHP and preg_match_all I\'m trying to get all the HTML content between the following tags (and the tags also):
paragraph text don\'t
paragraph text
This one work for me
preg_match_all("#<\b(p|ul|table)\b[^>]*>(.*?)\b(p|ul|table)\b>#si", $content, $matches)