Hi all, I have the following regular expression /[a-zA-Z0-9\-]/g
Basically, I am trying to make a pattern such that a string has ONLY alphabetical characters and/or a hyphen. The above regex matches strings if it has at least one character in the range, so it doesn't really do what I want it to do. So let's say, for example, I try to match the string "Test-String:Yay" with the above regex, it will match, but the regex that I'm trying to get shouldn't match it because it has a colon, which is not among the permitted characters. Thank you for your time.