From: Fabian Streitel Date: 2009-09-11T23:17:47+09:00 Subject: Re: [ANN] Joker -- Wildcards for Ruby --001636d3416cbe358004734dfaa7 Content-Type: text/plain; charset=ISO-8859-1 > > Just a thought... ruby already has globbing functions in dir.c, but they > apparently work only on dirs. Maybe they could be abstracted in to a library > that works on strings or arrays of strings. > > Honestly: I have no idea what's going on in that file... That's just too complicated C magic whuzzing around in there. But a problem with that approach -- as far as I can tell -- is that matching a glob against a string and matching it against the file system are 2 different things. Especially since "/" or "\" have special meaning in file systems and allow for splitting of the glob string into small subsections, whose matching against files is much easier. Also dir.c has the special "**" glob, which doesn't make and sense in string matching. Greetz! --001636d3416cbe358004734dfaa7--