This topic is locked

VAlidate as Regular Expression

11/11/2015 12:13:16 AM
PHPRunner General questions
A
ashumak author

Hi,
I want to Validate a text field as a regular expression. I need the field to be either PS47** or 792*** where the asterisks are all numbers.
Any help would be apprectiated.

Sergey Kornilov admin 11/11/2015

You can try the following:

/(^PS47[0-9]{4}$)|(^792[0-9]{5}$)/