NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Dang, I wish I knew this a few years ago (Score:1)
It's a very nice article (Score:2)
We're indeed talking about the regular expression
/a?a?a?aaa/which no experienced Perl code would ever use in real codeRe: (Score:1)
Err, come again? Surely you mean “
/a{3,6}/”?Re: (Score:2)
I'm just saying that every pathetic regexp can most likely be rewritten into something that is not pathetic witout much trouble — and possibly even be optimized.
Rewriting Regexes (Score:1)
I thought the article was important enough to post but I have to confess, I've never run into the problems shown in the article. I've even written my own (simple) regex matcher in C without running into those problems. Maybe this is an example of Jamie Zawinski's
or Abraham Maslow's:
Sometimes, you really don't