最佳答案
So I tried this:
if (/^[a-zA-Z]/.test(word)) {
// code
}
It doesn't accept this : " "
But it does accept this: "word word"
, which does contain a space :/
Is there a good way to do this?