Skip to content
  • There are no suggestions because the search field is empty.

Using RegEx in your Registration Form Quick Guide

You can now use RegEx or Regular Expression syntax to validate the text form fields in your registration form. 

This cheat sheet provides a handy reference for some of the most commonly used Regular Expressions (RegEx) in registration forms. Use these patterns to validate user inputs like phone numbers, postcodes, and more.

  • Phone Number Validation (UK format)- Pattern: ^+44s?7d{3}s?d{6}$
  • Mobile Phone Number (UK Format) - Pattern:^(+44s?7d{3}s?d{6}|(?07d{3})?s?d{6})$
  • Postcode Validation (UK format) - Pattern: ^([A-Z]{1,2}d[A-Zd]? d[A-Z]{2})$
  • Username Validation (Alphanumeric, 3-15 characters) - Pattern: ^[a-zA-Z0-9]{3,15}$
  • Password Validation (Min 8 characters, at least one letter and one number) - Pattern: ^(?=.*[A-Za-z])(?=.*d)[A-Za-zd]{8,}$
  • Employee ID Validation (Alphanumeric, 6-12 characters) - Pattern: ^[A-Za-z0-9]{6,12}$

If you need something more bespoke please contact a member of our Live Chat support team who are happy to assist.