digit for sample can match more than just plain 0-9

# U+06F2 is "EXTENDED ARABIC-INDIC DIGIT TWO"
/[[:digit:]]/.match("\u06F2")    #=> #<MatchData "\u{06F2}">

-- 
Posted via http://www.ruby-forum.com/.