Published
- 1 min read
regular expression should not contain special character
The solution for this is noted below
regular expression should not contain special character
Solution
//Author: Mohammad Arman Khan
//Regular Expression should not contain Special Characters
var regex = /^[A-Za-z0-9 ]+$/
Try other methods by searching on the site. That is if this doesn’t work