Requirement:
First four letter numeric next two letter alpanoumeric - next two letter alphanumeric than - all letter numberic.
e.g 2014US-123455
can u suggest field constraint for above requirment.
Requirement:
First four letter numeric next two letter alpanoumeric - next two letter alphanumeric than - all letter numberic.
e.g 2014US-123455
can u suggest field constraint for above requirment.
I'm a little uncertain of your particular pattern, and you don't specify if the numeric component has a specific length, so I'll give you one that would work assuming the length might vary (1 or more numeric digits).
Try: \d{4}\w{2}-\w{2}\d+
I used the \d character class to represent any numeric digit, and the \w character class for a "word character", which in most regular expressions is any letter, number, or the underscore "_" character. If you don't want the underscore, you'll have to replace each \w with [a-zA-Z0-9]
Take a look here for more info:
http://www.regular-expressions.info/shorthand.html