I want to check if a given string's first character is a word character/not a digit or white-space and return a boolean.
I'm trying to use regex for this. What I have is:
function isFirstIndexCharacter(str){
var regex = RegExp('w')
return regex.test(str[0]);
}
I always get false no matter what my input is. Thanks for any help on this.