3 ms·
Regexes are very readable, so long as you know what the symbols mean /[a-z0-9]+/ means "match one or more characters in the range a-z or 0-9"
by TazeTSchnitzel 13y ago
Regexes are very readable, so long as you know what the symbols mean
/[a-z0-9]+/ means "match one or more characters in the range a-z or 0-9"
- bliker 13y agoBut they can escalade into stuff like https://github.com/evilstreak/markdown-js/blob/master/lib/markdown.js#L388 https://github.com/evilstreak/markdown-js/blob/master/lib/ma...
- TazeTSchnitzel 13y agoIt seems unwieldy at first, but if you look at it carefully, its intent is quite clear. The real problem with regexes is that in many languages, they can't have whitespace or comments, so documenting them is a problem.