2 ms·
Play regex golf: https://alf.nu/RegexGolf https://alf.nu/RegexGolf Since many people are not good at them, whenever I use a regex in code, I add a comment with
by tomohawk 7y ago
Play regex golf: https://alf.nu/RegexGolf https://alf.nu/RegexGolf
Since many people are not good at them, whenever I use a regex in code, I add a comment with at least one example of the text that is to be matched, and note what the regex is also attempting to avoid. This is also a learning activity.
There is also the "Mastering Regular Expressions" book.