Answers for "check if a string is an alphabet javascript"

3

how to check if a string has only alphabets in javascript

if (!/[^a-zA-Z]/.test(word))
Posted by: Guest on June-11-2020
0

check for alphabetic string in javascript

function isAlphaOrParen(str) {
  return /^[a-zA-Z()]+$/.test(str);
}
Posted by: Guest on May-10-2021

Code answers related to "check if a string is an alphabet javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language