I am converting boost-based regular expressions to C ++ 11 regex. I have a url capture group:
\s*?=\s*?(("(?<url>.*?)")|('?<url>.*?)'))
With boost, if you have smatch , you can call match.str("url") to get the capture group by name. With std::smatch I only see indexed subheadings.
How can I access url capture using std :: smatch class?
source share