I got a problem with a javascript regex.
It doesn't stop numbers and "!" character while it should. It works for the others special characters, and of course I have debuged it to see if it really does the test, etc... and it does. It return true even if there is numbers in my String.
This is the RegExp :
new RegExp("^[^\\- ][A-Za-z\u00C00-\u017F\\- ]+"); // \u00C00-\u017F = À-S(latin)
It is to validate a first name in a form.
The problem is weird because I have exactly the same regex on the server side in java, and it works perfectly.
Thanks for your answers :)