From my eclipse plugin i ask the user to enter a pattern, based on that i show the list of files that match the pattern. Ex user can enter some thing like this: *DAO or DAO etc.
How should i validated this pattern and match the file names in my code.