One-liner determine whether a string is alphanumeric
This one-line function returns whether or not a string consists of only the characters A-Z, a-z, and 0-9.
Rate One-liner determine whether a string is alphanumeric
(4(4 Vote))
Public Function AlphaNumeric(ByVal s As String) As Boolean
AlphaNumeric = Not s Like "*[!A-Za-z0-9]*"
End Function
One-liner determine whether a string is alphanumeric Comments
No comments yet — be the first to post one!
Post a Comment