- Support Home
- Knowledge Base
- Web Forms
- Regex validation for mobile numbers.
Regex validation for mobile numbers.
Regex Validation for Mobile Numbers.
The Validation (Regex) property allows you to define validation rules for a field. This ensures that user input follows the required format, length, or other criteria. This ensures flexibility while maintaining data integrity.
In Taguchi V5 webform templates, the regex validation field helps ensure that the data collected aligns with your existing data requirements.
Below are some useful regex patterns for validating Australian mobile numbers:
Australian mobile numbers (international format, starting with +61):
^\+61[4][0-9]{8}$
Australian mobile numbers (starting with 04, followed by 8 digits):
^04\d{8}$
Extended version (allowing spaces or dashes):
If you want to allow formats like 0400 000 000 or 0400-000-000, use:
^04\d{2}[- ]?\d{3}[- ]?\d{3}$