I don't want to allow special characters but this regular expression still allows them, what am I doing wrong?
When i type for name : '&é"é&'é"&'&é"'a' It still gives back 'true'
You need to use
RegExp#test with anchors
String#match return an array if match is found. In your case,