It will depend on your level of knowledge.
If you are experienced, I would suggest something like Boost.Spirit.Qi , which is a real parser library. However, it may take some time to get used to.
Otherwise, it depends on what information you have at your disposal ... I will edit my answer when you provide us with more detailed information, since it is hairy enough to potentially complicate :)
source share