Skip navigation.

SuperPreview Blew Me AwayAll recent postsIf Only They Tested It on Themselves

Message to GEICO: Usability First Please

Seriously, GEICO, how difficult is it to write a regex to accept a policy number exactly as you print it without resorting to the lame “do not include dashes”?

GEICO policy number field

Hang on, lemme help you: \d{4}-\d{2}-\d{2}-\d{2}|\d{10}. Now you can go both ways.

This ain’t about the length of your database field. I couldn’t care less. It’s about improving usability.

You’re welcome. ;)

Comments

Comment permalink 1 Carl |
Your solution may not work because I'm guessing they've limited the input field to ten characters. If folks include dashes, then the user input won't fit into the textbox. :-)
Comment permalink 2 Milan Negovan |
Yep, hence my comment about the length of their database field. :)

It really doesn't matter to me what they do with the user input as long as they don't allow implementation details to leak. Which, in this case, they did.
Comment permalink 3 Chris Lienert |
Sites like this just scream "I'm a bad developer". Always all the more annoying for knowing that it could work properly with just a little effort.

Emails and Notifications

Would you like to be notified when somebody responds to this post?  Would you like to have these comments emailed to you?

Submit your comment

Please enter only text since all HTML tags except hyperlinks will be stripped. Hyperlinks will become live links. Any comments with flaming or offensive language will be deleted. Be courteous to other posters. Thank you.

Your name (required):
Your email (optional):
Your site's URL (optional):
Enter this number
Type in the number above:
Comment (required):