File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes General Computing and the fly likes regex needed to find all files with no extension Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "regex needed to find all files with no extension" Watch "regex needed to find all files with no extension" New topic
Author

regex needed to find all files with no extension

Jon Dornback
Ranch Hand

Joined: Apr 24, 2002
Posts: 137
i'm trying to locate all the files on my harddrive (windows) that have no file extension. i need a regex that will find all filenames with no "." in the name. anyone know how to do this?
thanks,
Jon


use the [CODE] tags - it makes it much easier for people to help you.
Jon Dornback
Ranch Hand

Joined: Apr 24, 2002
Posts: 137
it's not as good as grep, but i found a solution in dos:
dir *. /A:-d /S
lists all files with no extension, not including directory listings, and recurses subdirectories.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: regex needed to find all files with no extension