@MindzaiJul 04.2010 — #Why would you use regex when DomDocument is purpose built for exactly this kind of task? There are just too many variables involved with matching HTML tags.
@criterion9Jul 05.2010 — #I know it's using Regex, but how?[/quote] Why would you bother with a regex based on the previous answer by Mindzai? Why would you use regex when DomDocument is purpose built for exactly this kind of task? There are just too many variables involved with matching HTML tags.[/QUOTE]