This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Quick Javascript & RegEx quuestion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Quick Javascript & RegEx quuestion" Watch "Quick Javascript & RegEx quuestion" New topic

Quick Javascript & RegEx quuestion

Kevin P Smith
Ranch Hand

Joined: Feb 18, 2005
Posts: 362
I'm knocking together some validation for a registration page and found this RegEx for validating an email address.
The RegEx works on the website I got it from, but for some reason my page is ignoring it.

Could anyone point out my 'obvious' error as I can't see why it doesn't work.

Just to note, I now have the same issue with my postcode validation:

[ November 29, 2008: Message edited by: Keith Seller ]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
and how are you calling this code?

It is sorta covered in the JavaRanch Style Guide.
subject: Quick Javascript & RegEx quuestion
Similar Threads
Checking for load finished
how to prevent ice:commandButton from submitting if there is a validation error
First hand at RegEx
javascript validation
Email Validation