how can i filter an arraylist with a regexp?
Posted on 2008-10-11
i need a group of files out of a directory D,
i put all files names contained in the directory D into an arraylist,
now i need to filter the arraylist as i need only to keep the files that begin with a certain
string like "0001".
files in arraylist,
i need to delete - in my arraylist - all the files that dont begin with a pattern of four numbers like here "0001",
in order to get
thank you very much for help,
i would be delighted with some code,