944,050 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 6682
  • JSP RSS
Mar 27th, 2006
0

How to write javascript regular expression for this case?

Expand Post »
I want to use Javascript to validate user input for last name and first name by regular expression and just allow usa alphebetical letters plus space, apostroph and hyphen such as O'Neill and Lacova-D'elia.

How to write regular expression to validate user's input? Thanks a lot!
:rolleyes:
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
zbx888 is offline Offline
1 posts
since Mar 2006
Mar 28th, 2006
0

Re: How to write javascript regular expression for this case?

JSP Syntax (Toggle Plain Text)
  1. ^[A-Za-z -']*$
  2.  
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: JSP Homeland security level
Next Thread in JSP Forum Timeline: How to get Array type members' value from a class





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC