Search nested html elements


/ Published in: PHP
Save to your folder(s)

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.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.