Hello,
According to regex(7) manpage, a backslash followed by any other
character than ^.[$()|*+?{\ matches that character taken as an ordinary
character, as if the backslash had not been present. However:
* According to POSIX[0], the interpretation of an ordinary character
preceded by a backslash is undefined.
* Worse still, the described behavior differs from what is actually
implemented in the GNU libc:
$ gcc -Wall testre.c -o testre && ./testre
\S matches foobar
[0] http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html#tag_09_04_02