Why are you using a regex to do this? Why not create a file object for the directory you want to look for files in and then call the File objects listFiles() method passing in a FilenameFilter to only accept files not ending in .pst.