Regular Expression Help


Badge +1

Good Day All,

 

I need to control a "Single Line Text" to allow only 2 patterns.

To allow a user to only fill in a 3 digit number: eg. 001

or to in pattern. eg. "001-APP-01".

 

The numbers can be anything and the letters must be "APP" with the "-" between the letters and numbers.

 

I am new to regular expression so any help would be appreciated.

 

Regards


2 replies

Badge +8

hey,

 

this should be it: ^ddd[-]APP[-]dd|ddd$

 

17289iFC4B3C031B22AFCC.png

 

Badge +1
Thanks for this. Worked perfectly.

Reply