I am using Ruby on Rails 3.0.9 and I would like to validate a string that can contain only characters (case insensitive characters), blank spaces and numbers.
More:
- special characters are not allowed (eg: !"£$%&/()=?^) except
-
and_
; - accented characters are allowed (eg: à, è, é, ò, ...);
The regex that I know from this question is ^[a-zA-Z\d\s]*$
but this do not validate special characters and accented characters.
So, how I should improve the regex?