On Sunday, April 21, 2002, at 04:06 PM, Andreas J. Koenig wrote:
> On Sun, 21 Apr 2002 14:30:10 +1000, Ken Williams > <[EMAIL PROTECTED]> said: > >> The only assumption I'm making (this is valid, right?) is >> that if a regex matches a directory, it will also match each file >> inside that directory. I think this is true on every OS/filesystem I >> know of. > > Wrong! > > /^dir$/ matches "dir", not "dir/foo". Oh. Heh. Except for that. Or lookaheads, or similar. > > But as I said, it's unlikely that people are using such. Right, because they're not likely to want to exclude a directory but include files in that directory, unless they're very strange people. -Ken
