This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Struts and the fly likes Need validation for name field Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Need validation for name field" Watch "Need validation for name field" New topic
Author

Need validation for name field

angelin precilla
Ranch Hand

Joined: Sep 11, 2007
Posts: 33
Hi all,
I need to validate a name field which supports letters,numbers,spaces,periods,hyphens,apostrophe.Name field should start letters or number.
I have done validation for this....
var userIdExpr = /^[a-zA-Z0-9][a-zA-Z0-9 '\.-]*$/;
But additionally, I need to support extended characters for this name field.....
Extended characters means German characters � ���������
French Characters � ��������������
Could anyone help me......
Its very urgent....
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Need validation for name field
 
Similar Threads
First hand at RegEx
Regex problem
regular expression
Specifying the characters that cannot be present using PATTERN
Regular expression - help