Regular Expressions
-
The Regular Expression Visualizer, Simulator & Cross-Compiler Tool
-
- Online web regex game with crosswords - surprisingly fun!
-
- Cookbook
- The Greatest Regex Trick Ever
-
How do I match a word unless it's surrounded by quotes?
NotThis|NotThat|GoAway|(WeWantThis)
-
-
- Enhanced regex that compiles down to regex
No regular expression, in the original sense of the term, can match the pattern "any number of a's followed by the same number of b's." The slogan is "Regular expressions can't count."
But here's a "regular expression" in the Perl sense that DOES match any number of a's followed by the same number of b's.
(a(?1)?b)
The optional (?1) in the middle stands for the outer expression, introducing recursion.
- AutoRegex - English to RegEx with Natural Language Processing - [[ai]]
-
Regex is difficult to write and comprehend to the average human reader because of its complex patterns. This website uses GPT-3 to generate regular expressions from plain English.
-
All words starting with the letter "n" and ending with "g", case insensitive
/^nw*g$/i
-
Use find and replace <.*?>
<a data-id="extremism" class="glossary" role="link" tabindex="2" aria-label="Extremism. Glossary term.">Extremism</a> is defined as vocal or active opposition to fundamental <a data-id="british-values" class="glossary" role="link" tabindex="2" aria-label="British values. Glossary term.">British values</a>, including <a data-id="democracy" class="glossary" role="link" tabindex="2" aria-label="democracy. Glossary term.">democracy</a>, the <a data-id="rule-of-law" class="glossary" role="link" tabindex="2" aria-label="rule of law. Glossary term.">rule of law</a>, <a data-id="individual-liberty" class="glossary" role="link" tabindex="2" aria-label="individual liberty. Glossary term.">individual liberty</a> and mutual respect and <a data-id="tolerance" class="glossary" role="link" tabindex="2" aria-label="tolerance. Glossary term.">tolerance</a> of different faiths and beliefs.
[^"]+