From: Fabian Streitel Date: 2009-09-10T19:00:21+09:00 Subject: Re: [ANN] Joker -- Wildcards for Ruby --001636c5b83b9be5c60473363398 Content-Type: text/plain; charset=ISO-8859-1 Whoops overlooked one: You could generalize by saying: > * '\x' matches the literal character 'x', even if 'x' is a wildcard > character. > > That's exactly not what my implementation does. Since I had the library in mind as a way to interact with users who don't know about Regular Expressions, I wanted to keep it as simple as possible. Thus, the Ruby String "fo\\o" fed to the Wildcard class would be equivalent to /^fo\\o$/ but I'm not sure if that was a wise decision. The reasoning behind it was, that users woudn't have to type things like C:\\foo\\bar\\goo but rather only C:\foo\bar\goo since f b and g are no special characters. Does that make sense? What do you think? Which approach to take or should there be an option and if so what's the wiser default? Greetz! --001636c5b83b9be5c60473363398--