Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

check if char is letter or digit

Character.isDigit(string.charAt(index)) //(JavaDoc) will return true if it's a digit
Character.isLetter(string.charAt(index)) //(JavaDoc) will return true if it's a letter
4
How to check if a char is a letterJavascript By Ill Ibis on Dec 16 2021 ThankComment
function isCharacterALetter(char) {
  return (/[a-zA-Z]/).test(char)
}
Source by coderrocketfuel.com #
 
PREVIOUS NEXT
Tagged: #check #char #letter #digit
ADD COMMENT
Topic
Name
5+5 =