views:

70

answers:

1

I'm working on a C++ project and I need to find an external library which provides HTML parser and regular expression support.

The project is under 2 OS - iOS & Android.

I was thinking using libxml2 which has a HTML parser module and xml regular expression.

Can I use the xml regular expression module on HTML page?

In addition, I need some basic html function support in C++. Like those 2 PHP functions: rawurlencode & urlencode.

I'm open to different libraries.

Thanks

A: 

I've never used libxml2 to parse html, but I remember that it was easy to use for xml parsing, so probably it's worth a try.

For the regular expressions, instead, I would suggest you to use Boost Regex.

Paolo Tedesco