How to write escape character "\" to string?
In a normal string, you use \\
If this is in a regular expression, it needs to be \\\\
The reason RegEx needs four is because both the String parser and RegEx engine support escapes. Therefore, \\\\
is parsed to \\
by the String parser then to a literal \
by the RegEx parser.
Escape the escape character: "\\"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With