Advertisement
5_2007-2008 String Manipulation #173246

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

Tóm tắt bởi AI: 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.

Mã nguồn
original-source
Public Function AlphaNumeric(ByVal s As String) As Boolean
 AlphaNumeric = Not s Like "*[!A-Za-z0-9]*"
End Function
Bình luận gốc (3)
Được khôi phục từ Wayback Machine