Advertisement
6_2008-2009 String Manipulation #195764

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

Shrnutí 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.

Zdrojový kód
original-source
Public Function AlphaNumeric(ByVal s As String) As Boolean
 AlphaNumeric = Not s Like "*[!A-Za-z0-9]*"
End Function
Původní komentáře (3)
Obnoveno z Wayback Machine