--001636e1fbfd8a61de0488ff232c Content-Type: text/plain; charset=ISO-8859-1 I suppose this shall help http://www.tutorialspoint.com/ruby/ruby_regular_expressions.htm -- Thanks and Regards Saurabh Purnaye +91-9922071155 skype: sorab_pune yahoo & gtalk: saurabh.purnaye msn: psaurabh / live.com -- please don't print this e-mail unless you really need to. On Mon, Jun 14, 2010 at 8:54 PM, Abder-rahman Ali < abder.rahman.ali / gmail.com> wrote: > I'm new to Ruby, and just want to ask about how to read the following > statement from the "Agile Web Development With Rails, 3rd edition" book: > > %r{\.(gif|jpg|png)$}i > > I knew that %r is a way to write a regular expression. > > But, what is the $, and the i? > > Thanks. > -- > Posted via http://www.ruby-forum.com/. > > --001636e1fbfd8a61de0488ff232c--