Regular expressions being greedy seems like a bad default. They tend to work fine on small inputs but capture too much on larger inputs.
Too late to change in most situations though.
miniblog.
Related Posts
The Bitter Lesson: how implementing generic search and scaling compute outperforms custom logic in many situations:
I've released difftastic 0.48! Highlights in this release:
* Subword highlighting in replaced strings! This is a big improvement in many situations.
* Better Scala parsing
* Better Haskell handling
Codeforces is a huge website with a wealth of well-defined programming problems: https://codeforces.com/help#q1
(Useful for program synthesis and other situations where you want a large problem set to play with.)


