From: Adam Shelly Date: 2008-09-05T03:11:28+09:00 Subject: Re: String#match vs. Regexp#match - confused On 9/4/08, Old Echo wrote: > Hello everyone, > I'm very puzzled by the following: > > a = ".*me" > b = /.*me/ > test = "dont_ignore.me.fixture" > > a.match(test) > => nil > b.match(test) > => # > > Huh? When looking through the ri documentation for the "match" method on > the String class, it says it take the contents of the String and > converts it to a regexp before doing a match. test.match a => # The argument is converted to a regexp, not the original String. -Adam