This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
wood burning stoves
 
subject: regex needed to find all files with no extension
 
Similar Threads
Grep in a directory
how to match in java
Url Matching Algorithm Used By Tomcat for web.xml
Regex - match group that contains word AND does not contain another word
Search in Eclipse?