b3ta.com qotw
You are not logged in. Login or Signup
Home » Question of the Week » Off Topic » Post 998888 | Search
This is a question Off Topic

Are you a QOTWer? Do you want to start a thread that isn't a direct answer to the current QOTW? Then this place, gentle poster, is your friend.

(, Sun 1 Apr 2001, 1:00)
Pages: Latest, 837, 836, 835, 834, 833, ... 1

« Go Back | See The Full Thread

I'm pretty sure it was made by an autistic person.
Who the hell thought that something that looks like this...

^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$

... would code validation for an email address? How the fuck is that readable by a non autistic?
(, Tue 7 Dec 2010, 12:22, 1 reply, 15 years ago)
Here is how I would write that in a readable way
{::Any::}@{::Any::}.{::Any:2-4:}
(, Tue 7 Dec 2010, 12:30, Reply)
I'm not really going to argue very much ...
... but as something tends towards being very specific (and your example is a little ambiguous, right - what's an "Any" for example) so it gets more and more mad.

Some of it looks like line noise, I'll totally agree though. Ctrl-Alt-Palm, and there you go, instant regex ...
(, Tue 7 Dec 2010, 12:44, Reply)

« Go Back | See The Full Thread

Pages: Latest, 837, 836, 835, 834, 833, ... 1