On my code I have the follwoing regexp:
preg_match_all('/<title>([^>]*)<\/title>/si', $contents, $match );
That retrieves the <h>..</h>
tags from a webpage. But sometimes it may have html tags such as <strong>
,<b>
etc etc therefore It needs some modification therefore I tried this one
preg_match_all('/<h[1-6]>(.*)<\/h[1-6]>/si', $contents, $match );
But something wrong and does not retrieve the content that is in html <h>
tags.
Can you help me to modify correctly the regexp?