I want a custom validation for an input box and tried with this. /^[a-zA-Z0-9\,/.-\s]*$/
It will allow only the following special characters , . / - and blank space. I want to add one more special character and that is \
How can I achieve this.
Asked
Active
Viewed 308 times
1
Vimal
- 2,523
- 3
- 16
- 23
-
1Use: `/^[a-zA-Z0-9,/.\s\\-]+$/` – anubhava Jun 25 '18 at 13:52
-
This is working fine for me. Thanks @anubhava – Vimal Jun 25 '18 at 14:04