🔰special characters
🚧 under construction
JS ⟩ value ⟩ object ⟩ regex ⟩ pattern ⟩ special characters
// need to be escaped with a backslash (\)
. ? + * ^ $ \ /
( ) [ ] { } |
// any other character matches itself.
.
- any character 👉 character set.?
- repeat 0 ~ 1, or lazy.+
- repeat 1 ~ ∞.*
- repeat 0 ~ ∞.^
- beginning anchor, or invert a set 👉 character set.$
- end anchor.\
- escape./
- delimiter for regex in JS, for example:/abc/
.()
- group.[]
- ranges, alternation, 👉 character set.{}
- times to repeat.|
- alternation (or).
Last updated
Was this helpful?