On Sun, Nov 2, 2008 at 6:17 PM, Chealsea S. <youngliars / gmail.com> wrote:
> I tried "hex_pattern" with a string like "asdbgg" and it does not
> produce an error, even though "g" isn't A-F 0-9.

irb(main):012:0> hex_pattern === "asdbggg"
=> false

I can't reproduce that behavior.  What version/platform of Ruby are you on?

-- 
Avdi

Home: http://avdi.org
Developer Blog: http://avdi.org/devblog/
Twitter: http://twitter.com/avdi
Journal: http://avdi.livejournal.com