Jump to content

[SOLVED] french characters


sethupathy

Recommended Posts

The - (minus) should always be the last character in a set of characters in a regex because it is used to define ranges... eg. a-z 0-9 but when you do this '-" it yields error because no range between ' and " exists.

 

 

So do this:

 

/^[a-zA-ZéÉàÀ'"-]+$/

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.