regex
regex copied to clipboard
0 to Hero - Regex - project created to teach about Regex with practical examples and explanatory comments
Regex
Formal method of specifying particular characters, words or character standards. Made for searching, replacements, validations, filtering, etc..
Regex example
/(http:\/\/)?(www\.)?\w+\.\w{2,}(\.\w{2})?/g
It's like magic, when you find out how to do it, it's even embarrassing
VS Code Plugin
This vs code plugin helps executing regex in any language
Order suggestion for learning
Executing Regex
- JS functions
- Flags
Characters
- Meta characters
- Literal text
- Dot
- Spaces
- Pipe
- Accents
Joints
- Joint
- Intervals
- Joints with goals
- Shortcuts
- Negated
Quantifiers
- Quantifiers
- Optional (Zero or one)
- One or more
- Zero or more
- Braces
- Greedy
Groups
- Groups
- Rearview mirrors
ps: the previous topics refer to file names