/ Published in: PHP
Match nested html elements using regular expressions.
Replace the first part of the magic "[a-z]+" to search for a specific tag, e.g. "div".
Loop the magic on matched parts to create a recursive match.
Replace the first part of the magic "[a-z]+" to search for a specific tag, e.g. "div".
Loop the magic on matched parts to create a recursive match.