View Single Post
Old 2005-10-10, 12:27 PM   #20
sperry
The Doink
 
sperry's Avatar
 
Real Name: Scott
Join Date: Nov 2002
Location: Portland, OR
Posts: 20,335
 
Car: '09 OBXT, '02 WRX, '96 Miata
Class: PDX/TT-6
 
The way out is through
Default

Quote:
Originally Posted by nKoan
You just brought the nerd content of this thread from 1/10 to 10/10 with that statement.

but I would have written it "..(.){2}.."
I'm pretty sure I wouldn't have mistaken "2~AAi9" for "Button".

Hell, as it is, my regex would match Bu%%on or something. It really should have been "\w{2}(\w){2}\w{2}" to make sure it limited only to word characters.

Or even better yet: "[A-Z][a-z]([a-z]){2}[a-z]{2}" to make sure platform specific word characters aren't allowed if the regex should be used on a wierd system.

11/10... nerd-overload!
__________________
Is you is, or is you ain't, my con-stit-u-ints?
sperry is offline   Reply With Quote