I am quite confused on when to use '\' ,'\\' or even '\\\'.
I triple checked on K&B but I still fail 99% of questions regarding compilation of regex (questions about the Scanner class for example).
If someone has time, could try to clarify me these concepts?
From what I understood:
has reserved escape sequences :
\n = new line
\b = backslash
\t = tab
al the reserved escape sequence use only 1 '\', so trying to compile '\d' will give a compilation error.
Apart from this all the rest is completely unclear to me.