3 ms·
Wow. This guy just rewrote my exegesis of a Perl one-liner from about seven years ago. He links to the original, but his much more verbose explanation adds litt
by neilk 19y ago
Wow. This guy just rewrote my exegesis of a Perl one-liner from about seven years ago. He links to the original, but his much more verbose explanation adds little.
http://montreal.pm.org/tech/neil_kandalgaonkar.shtml http://montreal.pm.org/tech/neil_kandalgaonkar.shtml
Every now and then somebody rediscovers this, and in latter years it's made the social news sites regularly. And it's not even hosted on my own site! That's HTML somebody else made from a mailing list post, long before I ever blogged. I guess I peaked early.
Oh, and DUH: the point is not that one should use regular expressions for computation. It's to underscore that regexes are automata. And, it's kind of fun to unravel some of the obfuscation.