We’ve just learned that regular expressions have regular characters (digits and letters) and special characters. Special characters implement the syntax of regular expressions logic.
By now we also know that we can escape special characters with a backslash symbol \
(and backslash symbol is a special character itself).
Let’s compile a list of all regex special characters so we can escape them when needed. In the following lessons we’ll also learn and practice every single one of them.
Caret
The caret symbol ^
has 2 purposes. If used alone, it...