Humam Helfawi Humam Helfawi - 2 years ago 191
C++ Question

Is the R before string cross-platform

From MSDN, this code is used in order to match regular expression:

if (regex_match(s, m, regex { R"((\w+) (\w+))" }))
{
}


Is using the R before the string quota a standard C++?

Answer Source

Yes; this notation is known as a "raw string literal", and was standardized in C++11. Further (non-MSDN) documentation can be found here.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download