Advertisement
2002ASP String Manipulation #817

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.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Public Function AlphaNumeric(ByVal s As String) As Boolean
 AlphaNumeric = Not s Like "*[!A-Za-z0-9]*"
End Function
Original Comments (3)
Recovered from Wayback Machine