Is Alphanumeric

Check if a string contains only letters and numbers.

Code

General
/^[a-zA-Z0-9]+$/.test(str);

Parameters

The string to check

Browser·fetch() may be limited by CORS

More JavaScript Snippets