• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 323
  • Last Modified:

Name reg ex - allow extended characters but not numbers

i need to have a reg ex that will allow for french characters, i have been using this

var regExName = /^[a-z\u0000-\u10FFFF]+([\s\.\-\']?[a-z\u0000-\u10FFFF]+)?$/i

but on testing it allows numeric values, i must accept only alpha, this is for JavaScript  on client side validation, i will probably be applying it to server side in CF

the following is a test name that it should accept

john pol-jons st.onge o'reilly (double names with spaces, double names with hyphen, names with a period ., and names with an apostrophe) which currently all work, just need to get rid of the accepting numbers, i could just add a second check i guess and that what i will be doing  just hope this reg ex can be change to meet the no numerics requirement

TIA
0
James Rodgers
Asked:
James Rodgers
  • 2
1 Solution
 
hieloCommented:
try:
var regExName = /^[a-z\u00C0-\u01FF]+([\s\.\-\']?[a-z\u00C0-\u01FF]+)?$/i
0
 
James RodgersWeb Applications DeveloperAuthor Commented:
excellent, thank you!!
0
 
hieloCommented:
you are welcome
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now