here is my regex, in local java, it works, but when im trying to put it on p:fileUpload allowTypes it doesn't work.
my goals are 1) "itrs" or "ITRS" is a must 2) "-draft" or "-DRAFT" is optional 3) ".csv" or ".CSV" is a must
i want to filter the filename and file extension as much as possible
this is working on my local:(itrs|ITRS)((-draft|-DRAFT)?)(\.|\/)(csv|CSV)$