Boost logo

Boost-Build :

From: Shane Walker (dt_shriner_at_[hidden])
Date: 2008-02-14 15:31:53


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!
http://biggestloser.msn.com/



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk