News for hackers. Stuff that matters.
Re:Rob Pike on regular expressions in lexing and parsing by kragen on Tuesday August 23, 2011 @03:28PM (#2918032)
> This is why regex comments exist.

Regex comments don't help much with inadvertently writing a non-exhaustive regex (i.e. one for which some possible input could fail to match), or a few other kinds of regexp bugs. Or, how would you write the regexp in the above code with comments so that it would be obvious if you left out the \\$ case?

There are no comments on this comment yet.