Validation patterns

Validate the input for certain fields using regular expressions

For certain fields, you can specify which input patterns you expect, e.g. a combination of letters and numbers. This allows you to, for example, have ID numbers or flight numbers entered correctly.
You have the full power of regular expressions at your disposal here.

You can find some examples on this page. Simply copy the pattern and paste it into the corresponding field in guestoo.

Disclaimer: Just because we offer these patterns does not mean that you should blindly request this information from your guests. Please make sure that you are allowed to do so.

Du kannst für das guestoo Back-End zwischen zwei Darstellungsoptionen wählen. Die Screenshots in der Doku basieren auf dem "Klassischen Design".
Hier siehst Du die Unterschiede, damit Du dich auch im "Modernen Design" zurecht findest: » guestoo Back-End-Design

Number fields

General patterns for fields of type “Number”

DescriptionPattern
From-to (10-15) range:10-15
min. 5 digits ^[0-9]{5,}$
max. 9 digits ^[0-9]{0,9}$
between 5 and 9 digits ^[0-9]{5,9}$

“range:” is not a RegEx pattern, but a guestoo-specific specification.

Text field

General patterns for fields of the type “Text”

DescriptionPattern
min. 5 characters ^.{5,}$
max. 9 characters ^.{0,9}$
between 5 and 9 characters ^.{5,9}$

Identity card number

DescriptionPattern
Germany ([A-Z0-9]{9,11})

IBAN

DescriptionPattern
IBAN /^(?:(?:IT|SM)\d{2}[A-Z]\d{22}|CY\d{2}[A-Z]\d{23}|NL\d{2}[A-Z]{4}\d{10}|LV\d{2}[A-Z]{4}\d{13}|(?:BG|BH|GB|IE)\d{2}[A-Z]{4}\d{14}|GI\d{2}[A-Z]{4}\d{15}|RO\d{2}[A-Z]{4}\d{16}|KW\d{2}[A-Z]{4}\d{22}|MT\d{2}[A-Z]{4}\d{23}|NO\d{13}|(?:DK|FI|GL|FO)\d{16}|MK\d{17}|(?:AT|EE|KZ|LU|XK)\d{18}|(?:BA|HR|LI|CH|CR)\d{19}|(?:GE|DE|LT|ME|RS)\d{20}|IL\d{21}|(?:AD|CZ|ES|MD|SA)\d{22}|PT\d{23}|(?:BE|IS)\d{24}|(?:FR|MR|MC)\d{25}|(?:AL|DO|LB|PL)\d{26}|(?:AZ|HU)\d{27}|(?:GR|MU)\d{28})$/i

BIC

DescriptionPattern
BIC ([a-zA-Z]{4})([a-zA-Z]{2})(([2-9a-zA-Z]{1})([0-9a-np-zA-NP-Z]{1}))((([0-9a-wy-zA-WY-Z]{1})([0-9a-zA-Z]{2}))|([xX]{3})|)