Escape Sequences
Regex Fundamentals - Lesson 7
14 min
Progress0/5
Why Escape Characters?
Concept
Many characters have special meaning in regex. To match them literally, you must escape them with a backslash (\).
Example
\. matches a literal period \$ matches a literal dollar sign \+ matches a literal plus sign
Practical Application
Without escaping, special characters are interpreted as regex operators instead of literal characters