I have a requirement where I read a file in to a variable (in PHP, using file_get_contents function).
This file contains multiple tags like
<h3 attr="e"><target act="filename"></target></h3> and other tags (is not strict xml)
I need a regular expression (in PHP) that matches the above tag and returns "filename".. or the array of tags (like above) using regular expression.
I tried using preg_match_all but it was in vain..