Regex Lens
See what a pattern does before you trust it
JavaScript regex syntax
/
/g
How it reads
Hover a part to find it in the pattern
Test it
Reset sample text
Matches
Replace
Code
Replace each match with
Copy result
JavaScript
Python
Java
Copy code
Building blocks
Inserts at the cursor. Wrapping blocks go around your selection.
Pattern library
Your saved patterns
Save