From: Rick DeNatale Date: 2006-08-05T04:48:54+09:00 Subject: What's happening here? A strange regexp problem wth posix :alpha: character class I just ran across this, and can't figure out what's happening. the show_regexp method is as shown on p73 of the Pickaxe 2nd ed. irb(main):013:0> show_regexp("comparison is", /[:alpha:][^.?!\s'"]*/) => "com<> is" irb(main):014:0> show_regexp("comparison is", /[:alpha:][^\s]*/) => "com<> is" irb(main):015:0> show_regexp("comparison is", /[:alpha:][\S]*/) => "com<> is" irb(main):016:0> show_regexp("comparison is", /[a-zA-Z][\S]*/) => "<> is" irb(main):017:0> show_regexp("comparison is", /[a-zA-Z][^\s]*/) => "<> is" It looks like the Posix :alpha: character class doesn't include c, o, or m?!? Or am I missing something? -- Rick DeNatale