3 ms·
As far as regexes, The Sed and Awk book is good, but Mastering Regular Expressions by Friedl is amazing. The amount of time that went into that work is mind-bog
by _jal 10y ago
As far as regexes, The Sed and Awk book is good, but Mastering Regular Expressions by Friedl is amazing. The amount of time that went into that work is mind-boggling. The deep dives into the differences between different engines and the detailed explanations of why one regex performs horribly vs. another that matches the same thing quickly are really enlightening.
- dredmorbius 10y agoI agree with both statements. I still think that Sed & Awk is the better starting reference, as it begins with basic tools. Deep dives are fine, but sometimes you just wanto to get a few toes in the water. I'd argue that if you've got performance issues with regexes, you're (arguably) abusing the tool.