From: Robert Gustavsson Date: 2001-01-04T07:41:47+09:00 Subject: [ruby-talk:8599] Character classes in Ruby regexp Hi! I've tried to use character classes in Ruby regular expressions, like: str = "d12345d" x = str.scan( /[:digit:]+/ ) print x, "\n" The above code displays dd. It seems that Ruby interprets [] as a the list op and not the character class op. Or have I missed something? I looked in the source (regex.c). Maybe the character class support has been turned off in Ruby? Best regards Robert