From: Rajinder Yadav Date: 2009-12-15T18:33:18+09:00 Subject: Re: what does \s* means? griffith Khana wrote: > > > what does the .\s* means in the following commad it's actually '\.\s*' => match a '.' followed by zero or more spaces read the regular-expression section for more details: http://www.ruby-doc.org/docs/ProgrammingRuby/html/tut_stdtypes.html > > > > > > class String > def sentences > gsub(/\n|\r/, ' ').split(/\.\s*/) > end > end -- Kind Regards, Rajinder Yadav http://DevMentor.org Do Good! - Share Freely