Home > Uncategorised > Oh My God

Oh My God

Jesus, apparently this is designed to scare Newbies to the world of Regular Expressions, but it’s just ridiculous.

Apparently, the version in the Perl Library is actually broken down and explained, but this is just silly.

I’ll give you a small quote (it’s about 80 lines long, so I’m not going to quote the whole thing….)(?:(?:\r\n)?[ \t])*(?:(?:(?:[^()<>@,;:\\”.\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\[“()<>@,;:\\”.\[\]]))|”(?:[^\”\r\\]|\\.|(?:(?:\r\n)?[ \t]))*”(?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\”.\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\[“()<>@,;:\\”.\[\]]))|”(?:[^\”\r\\]|\\.|(?:(?:\r\n)?[ \t]))*”(?:(?:\r\n)?[ \t])*))*@(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\”.\[\] \000-\0

Hmm, seems I knackered this post earlier on when I did a bit of minor editting. I’ve should have restored it, but I’m not sure whether there was anything on the end. Will have to wait until tomorrow until I can be sure!
Categories: Uncategorised Tags: , ,
  1. Rich
    April 19th, 2005 at 18:57 | #1

    Scares
    … the fuck out of me, at least. I’ve never even considered writing a regex that long!

  1. No trackbacks yet.