GeeCON Prague 2014*
The moose likes Java in General and the fly likes Searching For Files Using Filter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Searching For Files Using Filter" Watch "Searching For Files Using Filter" New topic
Author

Searching For Files Using Filter

Rob Levo
Ranch Hand

Joined: Oct 01, 2000
Posts: 167
Does anyone have example code of searching for files with specific string as a prefix or extension.
Thanks,
Rob
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
How's this?

Nowadays regular expressions could support the kind of globals and wildcards users are accustomed to at the command line, and lots of other cool things.
[ July 10, 2003: Message edited by: Stan James ]

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Rob Levo
Ranch Hand

Joined: Oct 01, 2000
Posts: 167
Perfect, thanks!
 
GeeCON Prague 2014
 
subject: Searching For Files Using Filter