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() Count the number of lines in a string.
InputValidation::RemoveFirstLine() Returns the string without the first line.
InputValidation::RemoveNewLines() Replaces every new line character with a space.
InputValidation::ToAlphanumerical() Remove any non-numerical and non A-Z characters.

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.