Is Alpha Only

Check if a string contains only alphabetic characters.

Code

General
!!(str =~ /^[a-zA-Z]+$/)

Parameters

The string to check

Server

More Ruby Snippets