Skip to content

Input Validation

Conditions and expressions to check, sanitize and manipulate strings.

Authors and contributors to this community extension: arthuro555, Add00.


Provides conditions to check if a string is a valid phone number, url, email, number, contains only letters. Also provides expressions to manipulate strings (count number of lines, remove new lines, remove non alphanumerical characters).

Tip

Learn how to install new extensions by following a step-by-step guide.

Conditions

Check if a string has only latin alphabet letters
Check if the string has only latin alphabet letters.

Check if a string is a valid email
Check if the string is a valid email.

Check if a string represents a number
Check if the string represents a number (potentially with a minus sign and potentially with a decimal point).

Check if a string is a valid phone number
Check if the string is a valid phone number.

Check if a string is a valid URL
Check if the string is a valid URL.

Expressions

Expression Description
InputValidation::CountNewLines(string) Count the number of lines in a string.
string The text to count lines from
InputValidation::RemoveFirstLine(string) Returns the string without the first line.
string String to remove the first line from
InputValidation::RemoveNewLines(string) Replaces every new line character with a space.
string The text to remove new lines from
InputValidation::ToAlphanumerical(string) Remove any non-numerical and non A-Z characters.
string The text to sanitize

This page is an auto-generated reference page about the Input Validation extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.