I am pass the following string to a function as so
void func(string expr)
{
regex pattern(expr);
}
func( "(\d{1,2}\.+\d{2})" )
however through the visual studio debugger I have found that the regex pattern being stored is actually (d{1,2}.+d{2})
which is causing my regex to malfunction entirely. Why is this happening and how can I fix it.