regular expression only letters code example
Example 1: only letters regex
/^[a-zA-Z]+$/g
Example 2: regex any letter
[a-zA-Z] //all letters
[a-z] //only lowercase letters
[A-Z] //only uppercase letters
/^[a-zA-Z]+$/g
[a-zA-Z] //all letters
[a-z] //only lowercase letters
[A-Z] //only uppercase letters