I can get regex++ to work with escape characters, whats going on?
A. If you embed regular expressions in C++ code, then remember that escape characters are processed twice: once by the C++ compiler, and once by the Boost.Regex expression compiler, so to pass the regular expression \d+ to Boost.Regex, you need to embed “\d+” in your code. Likewise to match a literal backslash you will need to embed “\\” in your code.