README.md

December 4, 2022 ยท View on GitHub

One-liner - determine whether a string is alphanumeric

Description

This one-line function returns whether or not a string consists of only the characters A-Z, a-z, and 0-9.

More Info

Submitted On
ByKamilche
LevelBeginner
User Rating4.8 (19 globes from 4 users)
CompatibilityVB 4.0 (32-bit), VB 5.0, VB 6.0
CategoryString Manipulation
WorldVisual Basic
Archive File

Source Code

Public Function AlphaNumeric(ByVal s As String) As Boolean
 AlphaNumeric = Not s Like "*[!A-Za-z0-9]*"
End Function