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
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: regex needed to find all files with no extension
 
Similar Threads
Search in Eclipse?
Grep in a directory
Url Matching Algorithm Used By Tomcat for web.xml
Regex - match group that contains word AND does not contain another word
how to match in java