# phpman > man > XML(3pm)

## Found in /usr/share/perl/5.34/pod/perlfaq6.pod
  How do I match XML, HTML, or other nasty, ugly things with a regex?
    Do not use regexes. Use a module and forget about the regular
    expressions. The [XML::LibXML](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML/markdown), [HTML::TokeParser](https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3ATokeParser/markdown) and [HTML::TreeBuilder](https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3ATreeBuilder/markdown)
    modules are good starts, although each namespace has other parsing
    modules specialized for certain tasks and different ways of doing it.
    Start at CPAN Search ( <<http://metacpan.org/>> ) and wonder at all the
    work people have done for you already! :)

