One-liner determine whether a string is alphanumeric
by Kamilche (35 Submissions)
Category: String Manipulation
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (4 Votes)
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
Public Function AlphaNumeric(ByVal s As String) As Boolean
AlphaNumeric = Not s Like "*[!A-Za-z0-9]*"
End Function
Download this snippet
Add to My Saved Code
One-liner determine whether a string is alphanumeric Comments
No comments have been posted about One-liner determine whether a string is alphanumeric. Why not be the first to post a comment about One-liner determine whether a string is alphanumeric.
Post your comment