isAlphaNumeric

Summary

Checks if the character is an alphanumeric character.

Usage

public bool isAlphaNumeric()

Returns

'true' if the character is alphanumeric and 'false' otherwise.

Description

Checks if the character value is an alphabetic character (ranging from A-Z and a-z) or a numeric digit.

For numeric digits, this check will only perform the check on Arabic numeral digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. Digits from other numbering systems are not included.

Examples

Check if a character is alphanumeric
1
2
3
4
5
`a`.isAlphaNumeric(); // true
`i`.isAlphaNumeric(); // true
`3`.isAlphaNumeric(); // true
`+`.isAlphaNumeric(); // false
`@`.isAlphaNumeric(); // false

Share

HTML | BBCode | Direct Link