Skip to content

string_letters

CryoEagle edited this page Dec 26, 2018 · 4 revisions

string_letters

Returns a copy of a given string with everything but its letters removed.

Syntax:

string_letters(str)
Argument Description
string str The string to convert to letters

Returns: string

Description

With this function you can remove all characters that are not classed as letters. This is handy for preventing people from entering unwanted characters into a text entry (like entering "#" to force a new line).

Note: This function only detects the 26 letter english alphabet from A - Z.

Example:

username = string_letters(username); 

The above code will set the "username" variable to only hold the letter characters of the original string.

Back to strings

Clone this wiki locally