I would like to know how this can be achieved.
Assume: That there\'s a lot of html code containing tables, divs, images, etc.
Problem: How can I get matches
You can try this:
preg_match_all("/$value) { echo $key . ", " . $value . ""; }