From: Robert Klemme Date: 2013-02-05T01:39:29+09:00 Subject: Re: Character classes use in Ruby On Mon, Feb 4, 2013 at 4:46 PM, Love U Ruby wrote: > tamouse mailing lists wrote in post #1095109: >> On Mon, Feb 4, 2013 at 4:59 AM, Love U Ruby >> wrote: >>>> /[[:digit:]]/ - Digit >>> >>> I know their description - but would be good for me if I get a ruby tiny >>> code to see their uses. Mainly how syntactically are they >>> used,basically. >> >> Read the page Hans pointed you to: >> >> /[[:upper:]][[:lower:]]/.match("Hello") #=> # > > > Okay! Could you explain how the matching here performed, to produce > "#" There are tutorials on regular expressions out there on the web. Nobody is going to go through the effort to write another one just for you. If you want a book, read "Mastering Regular Expressions". Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/