Is Alpha Only

Check if a string contains only alphabetic characters.

Code

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

Parameters

The string to check

Browser·fetch() may be limited by CORS

More JavaScript Snippets