From: Frederick Cheung Date: 2008-10-16T23:49:18+09:00 Subject: Re: symbol confusions!! On 16 Oct 2008, at 14:31, Jay Pangmi wrote: >> > > Thanks Rob you made my life lot easier.. no I don't have that book I > just have 'Agile Web Development with Rails 2nd Edt.' so, ruby is > just a > small part here and hence internet has been my only source. The first edition of the pickaxe is available online http://www.rubycentral.com/book/ A little out of date (it covers ruby 1.6) but there's plenty of useful stuff in there There's also the humble little ruby book: http://www.humblelittlerubybook.com/ which is a free download > > Also I confusion about the use of slashes: > %r{(\d{1,2}):(\d{1,2}):(\d{4})} > whats the use of forward slash here > and the '+' sign below: > split(/[^0-9]+/) / can be used to delimit a regular expression. In a regular expression + denotes "one or more times") > > Also I think I've seen the use of other words with '%' like %w but I %r (alternative way of writing regular expressions), %x (like `), %q and %Q (like ' and " respectively) and %w are the common ones Fred