Regex 1-40

levino
Giga Guru

Hi Team

similar to the below i need a regex for 1-40  for a catalog variable

^(2[0-4]|1[0-9]|[1-9])$

 

please advise

Thanks

Levino

1 ACCEPTED SOLUTION

Sonam_Tiwari
Kilo Sage

Hey,

 

Check this - ^([1-9]|[1-3][0-9]|40)$

 

 

Consider indicating the response as helpful and marking it as correct if it meets your needs.

View solution in original post

1 REPLY 1

Sonam_Tiwari
Kilo Sage

Hey,

 

Check this - ^([1-9]|[1-3][0-9]|40)$

 

 

Consider indicating the response as helpful and marking it as correct if it meets your needs.