I created a regex for postal code (non us countries) to include two criterias ..
- minimum 5 chars , max 10 chars
- should have only alpha numneric with only one space/hyphen in the middle
regex: ^([a-zA-Z0-9]{3,10}[ |-]{0,1}[a-zA-Z0-9]{0,7})(.{5,10})$
I'm not sure where this is going wrong, but this is not working