I am uploading a file and I need to check whether the filename belongs to a particular pattern or not.
Example: AL-13-Annual DSH Audit.pdf
The first two characters "AL" can be anything but will be only 2 Uppercase characters, followed by a dash(-), followed by a 2 digit number, followed by a dash(-), followed by the rest('Annual DSH Audit.pdf').
This is what I have done so far.
[A-Z]{2}[\-][0-9]{2}[\-][A]{1}[nnual]{5}\s[DSH]{3}\s[A]{1}[udit]{4}\.[pdf]{3}
Please advice. Not sure how to proceed further to simplify this.