mirror of
https://github.com/ziishaned/learn-regex.git
synced 2025-08-29 23:16:22 -04:00
FIX typo in Escaping special character section (#63)
This commit is contained in:
parent
ea270ac1e3
commit
e698d5da28
@ -259,7 +259,7 @@ or lowercase character `c`, followed by lowercase character `a`, followed by low
|
||||
|
||||
## 2.7 Escaping special character
|
||||
|
||||
Backslash `\` is used in regular expression to escape the next character. This allows to to specify a symbol as a matching character
|
||||
Backslash `\` is used in regular expression to escape the next character. This allows us to specify a symbol as a matching character
|
||||
including reserved characters `{ } [ ] / \ + * . $ ^ | ?`. To use a special character as a matching character prepend `\` before it.
|
||||
For example, the regular expression `.` is used to match any character except newline. Now to match `.` in an input string the regular
|
||||
expression `(f|c|m)at\.?` means: lowercase letter `f`, `c` or `m`, followed by lowercase character `a`, followed by lowercase letter
|
||||
|
Loading…
x
Reference in New Issue
Block a user