I had recently written regexes to parse contens in my file but that one was in .NET and I just started using Boost now for my C++ project.
I have a line similar to the following, which is a std::string
123 12 E
that I have to parse and get the following.
float = first digit
float = second digit
string = third alphabet
Since I have experience using regexes, I know what the regex is
const char* Regex = "^[[:space:]]*(\\d{1,3})[[:space:]]*(\\d{1,2})[[:space:]]*([NSEW])[[:space:]]*"
But I am not sure how to use this with boost to extract the three things from my line. I tried reading examples on Boost website and that didn't seem to answer my question since I would have to bog down to find this little detail. how do I use Boost Regex with the above regex to get my result out in three variable?