From: Brian Wallace Date: 2009-04-22T03:28:40+09:00 Subject: Re: directory watcher, trying to match filename to directory name. --000e0cd5194ec4033d046814d023 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I do realize this :) , but if I could at least assume that "STRING" without the .??? is a directory, it would suffice ... Since the application will run in Windows there's less of a chance that a file called "STRING" would be placed into the list. So a RegEx that matches anything up to the '.' file extension and excludes '.' and '..' would be enough On Tue, Apr 21, 2009 at 2:19 PM, Hassan Schroeder < hassan.schroeder@gmail.com> wrote: > On Tue, Apr 21, 2009 at 11:11 AM, Brian Wallace > wrote: > > > With that said - and since I am so horrible with regular expressions ... > > Does anyone know the RegExp that will match directory names ONLY ? > > There's nothing about a name that distinguishes a directory from a > file, so the answer to that is easy: no :-) > > -- > Hassan Schroeder ------------------------ hassan.schroeder@gmail.com > > --000e0cd5194ec4033d046814d023--