Hacker News new | ask | show | jobs
by NathanKP 4467 days ago
The root lesson here is pretty simple but important: you should usually avoid using regular expressions in places where readability and ease of update is a concern.

Using a complicated one line regular expression to do all the magic is fun, but its a nightmare to maintain and figure out how it works later on.