Hi I'm hoping to get some starting points here in a subject that scares me, RegExp.
I've looked at a couple of tutorials but they all seem to be based on std::string.
I'd like to use std::tr1::regex but I don't know where to start or even if it's possible
without conversion, and whether a conversion would be too expensive to the speed of
my code.
Here is an example of a string I find in another larger string
"%xt%var%-1%var%var%var%var%var%var%var%var%var%var%"
Where var's are the values I want to retrieve. There may or may not be multiple occurances of
the substring from which I want my values, but it always starts with "%xt%" and the "-1" is
also always present, but the substring may be shorter or longer, or it might be the whole string
as opposed to a sub string, but always ends with ascii char 00.
oops did I mention it's an unsigned char array..
Currently I am paring this with multiple calls of various hand rolled functions of iterations
and it's driving me bonkers.
I'll stop there in case it is not even possible.
I'm sorry about having no code to submit, but I simply have zero clue with regards regexp.