|
Browse by Tags
All Tags » RegExp (RSS)
-
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...
-
-
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....
-
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...
-
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...
-
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 ...
-
Shouldn't !pin.match(/^(.)(\1)$/) be !pin.match(/^(.)\1{3}/) ?
-
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...
-
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...
Page 1 of 1 (9 items)
|
|
|