Note that there are some explanatory texts on larger screens.

plurals
  1. USzx81
    text
    copied!<p><strong>My Favorite Question</strong></p> <p>This is the question I had the most fun answering so far. It's a simple but really effective regex technique that can be used in a surprisingly large number of situations.</p> <p><a href="http://stackoverflow.com/q/23589174/">Matching or replacing something, except when x, y or z...</a></p> <p><strong>Tricks / Answers I had fun with</strong></p> <ul> <li><a href="http://stackoverflow.com/q/24903140/1078583">Match Any English ASCII Character Including Special Characters</a></li> <li><a href="http://stackoverflow.com/a/24470891/1078583">What's in a <code>$</code>? It depends!</a></li> <li><a href="http://stackoverflow.com/q/24944417/1078583">Matching between Variable Delimiters: Use a Conditional</a></li> <li><a href="http://stackoverflow.com/a/25050438/1078583">One Set of Parentheses, One Group Number: Branch Reset</a></li> <li><a href="http://stackoverflow.com/q/23839481">At which position in the string did the regex fail?</a></li> <li><a href="http://stackoverflow.com/a/24794554/1078583">Match all possible groups of one to four words</a></li> <li><a href="http://stackoverflow.com/a/24956016/1078583"><code>[][]</code> and friends: So you thought matching brackets was easy?</a></li> <li><a href="http://stackoverflow.com/q/24947409/1078583">Match Partially Duplicated lines</a></li> <li><a href="http://stackoverflow.com/q/24921103/1078583">Refactor a Regex with Subroutines</a></li> <li><a href="http://stackoverflow.com/q23859588/">Regex for nested (overlapping) matches</a></li> <li><a href="http://stackoverflow.com/questions/21119365/regex-calculator/24237044#24237044">Regex Calculators (RPN and non-RPN)</a></li> <li><a href="http://stackoverflow.com/q/24173788">Match the last group of (potentially) nested brackets</a></li> <li><a href="http://stackoverflow.com/q/23879147/">Reverse-engineer regex pattern to find number of tokens and length of expected matches</a></li> <li><a href="http://stackoverflow.com/q/23727476/">Replace Match with the Number of the Line where it was Found</a></li> <li><a href="http://stackoverflow.com/q/24734796/">Extract All Unique Lines</a></li> <li><a href="http://stackoverflow.com/a/24623419/1078583">Matching French letters</a></li> <li><a href="http://stackoverflow.com/a/24472179/1078583">Capturing Two Optional Groups that Can Occur in Either Order</a></li> </ul> <p><strong>Answers I loved reading</strong></p> <ul> <li><a href="http://stackoverflow.com/a/4247184/1078583">What's a number?</a></li> <li><a href="http://stackoverflow.com/q/3371697/">Replacing accented characters</a></li> <li><a href="http://stackoverflow.com/q/1845078/1078583">Options for Forced Failure</a> (ignore the accepted answer). This is just for fun—the standard is <code>(?!)</code> or <code>(*F)</code> in Perl and PCRE.</li> </ul> <p>Work in progress—I really want to add more here. By far the greatest thrill I get on Stack is when I read an answer that makes me go "Aha!..." and grasp a way of doing things that is so much more efficient than anything I had come up with. I've been blown away quite a few times. And one thing that's for sure is there's no shortage here of people who are a lot brighter than me. :)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload