AnsweredAssumed Answered

regex question

Question asked by neiden on Mar 27, 2019
Latest reply on Mar 28, 2019 by neiden

Hello! I feel like I'm really close with the answer but hitting a wall. I'm using a regular expression to constrain values for a web-only form. The pattern required is 2 uppercase letters followed by 6 digits. 

 

Here's what I'm trying:

regex(.,'^[A-Z]{1,2}\d{6}$') 

 

It almost works, except for it allows 7 numbers to be entered, and it needs to be only 6. 

 

Help? i'm sure it's a simple fix staring me in the face.

 

TIA! :-) 

Outcomes