3 ms·
those comments are no better than: i++; /* increase i by one */ sure, break up a larger regex to reflect its structure and comment those sections, but some
by blibble 9y ago
those comments are no better than:
i++; /* increase i by one */
sure, break up a larger regex to reflect its structure and comment those sections, but something like \\d{3} or [-.]? should really not need commenting
- bpicolo 9y agoRegex has enough sigil spam / characters that mean alternate things than "this is a letter" that mentally parsing it beyond the trivial case is difficult. They're ubiquitous, but they sure aren't a perfect UI