why is that when define regex_string there are three slashes \\\ infront the dot , however when i define str i only need two slashes \\ , would i not have to escape the dot "." when i define a regular string, so should i not use three slashes instead ?
also why don't i have escape the opening and closing parenthesis "(" and ")" in the regular string ?
I think you need to distinguish between three separate concepts.
1. Which characters have a special meaning when used in a C++ string.
2. Which characters have a special meaning when used in a regular expression.
3. In the context of C++strings, the difference between traditional representation of a literal, and the raw-string approach to representing a literal.