Quick question: I need to allow an input to only accept letters, from a to z and from A to Z, but can\'t find any expression for that. I want to use the javascript test() me
The answer that accepts empty string:
/^[a-zA-Z]*$/.test('something')
the * means 0 or more occurrences of the preceding item.
*