From: Fabian Streitel Date: 2009-09-10T18:48:44+09:00 Subject: Re: [ANN] Joker -- Wildcards for Ruby --001636c5b8d89d79b80473361af4 Content-Type: text/plain; charset=ISO-8859-1 > Note that these are known as "glob patterns" -- you might want to update > your documentation accordingly (http://en.wikipedia.org/wiki/Glob_pattern) > Ah, thx, I've been searching for the correct name of these but couldn't find it. The only thing I've ever heard was "Wildcard". > > Also, your rdocs seem to be missing a few backslashes: > > * '?' matches a single character > * '*' matches any number of characters, including 0 > (1) * '*' matches a literal '*' > * '\?' matches a literal '?' > (2) * '\' matches a literal '\' > > 1 should be: '\*' matches a literal '*' > 2 should be: '\\' matches a literal '\' > > You could generalize by saying: > * '\x' matches the literal character 'x', even if 'x' is a wildcard > character. > I'll do that. > > You haven't implemented bracket expressions: '[cb]at*' should match > 'catch' and 'batch' but not 'match' > I'll look into that. Thanks for the feedback! --001636c5b8d89d79b80473361af4--