My Favorite Question
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.
Matching or replacing something, except when x, y or z...
Tricks / Answers I had fun with
$
? It depends![][]
and friends: So you thought matching brackets was easy?Answers I loved reading
(?!)
or (*F)
in Perl and PCRE.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. :)