string_letters

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

Syntax:

string_letters(str);


Argument Description
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: Strings
Next: string_lettersdigits
© Copyright YoYo Games Ltd. 2018 All Rights Reserved