In the normal line you use \\
If it is in regular expression, it should be \\\\
The reason RegEx needs four is because both the line parser and the RegEx engine are accelerated. Therefore, it is \\\\parsed by String on \\and then on a literal \by the RegEx parser.
source
share