I have regexp pattern like this:
^[a-zA-Z0-9]+\s(INV|FINAL)\s([0,1]?\d{1}\s(([0-2]?\d{1})|([3][0,1]{1}))\s(([1]{1}[9]{1}[9]{1}\d{1})|([2-9]{1}\d{3})))(\s{1})\d+$
This pattern should validate if the document name is correct
Document name like this should match this pattern:
1207181 FINAL 12 13 12 1533
At the beginning – just numbers, it’s like id.
Next one space.
Next INV or FINAL word.
Next date in format dd mm yy.
Next some digits.
Can anybody help me to resolve this?
You’re searching for:
Explanation:
It won’t match
1207181 FINAL 12 13 12 1533because of the13.