i am trying to upload file with extension like .pdf or .xls i want to exclude .sh .exe , .js or .bat extension from the file name either these are end of the name or in between the file name ex. filename.exe.pdf I want it should excluded
([a-zA-Z0-9\s_\\.\-:])(?!(exe|sh|js|bat))+(.pdf|.xls)$
using above pattern if the filename is file.pdf then it is acceptable but i want if the filename is filename.exe.pdf then it should be exclude exe filename
currently with this pattern its matching till e.pdf for filename.exe.pdf


