Is there a way to group parts of a regular expression into “named captures”? An example is this:

 

(?<dir>^[NSns])(?<deg>[0-0]*\\d{1,2})[:|\\.](?<min>[0-0]*\\d{0,2})[:|\\.]?(?<sec>\\d{0,3}),

 

which I would want to use to match a latitude input such as “N32:34.033”. But for some reason, I am receiving an

error in VS C++ 2003 using boost library 1.34.1, saying that this regular expression has errors.

 

How would I accomplish named captures in the boost library for Visual C++ 2003 MFC?

 

Thanks in advance for any answers.



Shed those extra pounds with MSN and The Biggest Loser! Learn more.