mike509123
MIS
Hi,
I am looking to create a regular expression that only allows Upper Case and Lower Case Letters and hyphens.
I have the following so far which allows for uppercase and lower case characters. How do I modify it to include "-" also?
var re = new RegExp("^([a-zA-Z])+$");
I am looking to create a regular expression that only allows Upper Case and Lower Case Letters and hyphens.
I have the following so far which allows for uppercase and lower case characters. How do I modify it to include "-" also?
var re = new RegExp("^([a-zA-Z])+$");