Constraints syntax

I’m trying to set a constraint to go with the format: ABC-12345678-12345 using the constraint term: regex(.,‘^[A-Za-z]{3}+[-][0-9]{8}+[-][0-9]{5}$’) I’m getting an error message with the correct input. What could be wrong with my syntax?

Hi @solotheking,

You don’t need to use + symbol.

regex(.,‘^[A-Za-z]{3}[-][0-9]{8}[-][0-9]{5}$’) should solve your issue.

2 Likes