This code isn\'t returning anything, am I escaping the w character the wrong way??
http://liveworkspace.org/code/3bRWOJ$38
#include
The regular expression should contain \w, consisting of two characters, \ and w, hence your C++ source code should contain "\\w" as you need to escape the backslash.
\w
\
w
"\\w"