The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

Browse by Tags

All Tags » RegExp (RSS)
  • Nuns and Regexes Do Not Mix

    We run an old text game built on an ancient and mysterious codebase. It occasionally does strange things for reasons that've been lost to the mists of time. Sometimes it refused to create new characters. It loathed certain names with a passion, like 'Counterlock', and nothing would explain...
    Posted to Forum by Corona688 on 03-27-2008
  • Re: (Li|U)n[iu]x admins collected and own WTFs

    What the hell is Linix?
    Posted to Forum by uberfoo on 09-25-2007
  • Re: It works...

    zip: asuffield: zip: The fact that there's this much discussion about as simple a regex as "is it 6 numeric characters?" is why regexes are more trouble than they're worth at least half the time. If I can write code that does what the regex does in less than 60 seconds, there's no reason to use one....
    Posted to Forum by fennec on 04-26-2007
  • Re: It works...

    dhromed: If your regex engine does that, it depends on the flavour. :) Perl. In JS, /^\d{6}$/ will test for precisely six numeric characters, and not the newline. $ will test for the end of the string. It will return false on "123456\n", as the end of the string is not taken by a digit. When multiline...
    Posted to Forum by fennec on 04-26-2007
  • Re: It works...

    tster: AbbydonKrafts: Not too bad. It's a little overkill to instantiate a Regex object just for that. I would've stuck with a numeric and length check. probably because you have not mastered regexes. Otherwise you would have realized that "^\d{6}$" is much easier to write and maintain than however you...
    Posted to Forum by fennec on 04-25-2007
  • The Clbuttic Mistake

    Browsing through a web archive of some old computer club conversations, I ran across this sentence: "Apple made the clbuttic mistake of forcing out their visionary - I mean, look at what NeXT has been up to!" Hmm. "clbuttic". Google "clbuttic" - thousands of hits! There's a someone who call his car ...
    Posted to Forum by ezrec on 04-11-2007
  • Re: for while loop

    Shouldn't !pin.match(/^(.)(\1)$/) be !pin.match(/^(.)\1{3}/) ?
    Posted to Forum by pinkduck on 03-09-2007
  • Worlds dumbest IDE

    Delphi 2005 - it's just my daily glimpse of what hell could be like. At first it looks alright, seems to work for a while, but then... all kinds of little annoyances start to surface. On their own, they are just little bugs. But together they create an environment that could make programmers go postal...
    Posted to Forum by Gabelstaplerfahrer on 02-01-2007
  • The richness of language

    At least in human languages, a rich one allows you to say the same thing in many different ways... at least in human languages... today I was wandering in some community and stopped by a post of someone asking to explain this javascript code: function emailCheck(email) { var tmp = "" + email + "", s...
    Posted to Forum by Samus_ on 01-15-2007
Page 1 of 1 (9 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems