From: "Dasson, Raghav" Date: 2009-12-15T18:26:43+09:00 Subject: Re: what does \s* means? \s* means occurrence of zero or more white spaces. gsub(/\n|\r/, ' ').split(/\.\s*/) is basically first removing all the line feeds and carriage returns and then the sentence is split into an array whenever a dot followed by zero or more white spaces is encounterd. Regards, Raghav -----Original Message----- From: khanal02@gmail.com [mailto:khanal02@gmail.com] Sent: Tuesday, December 15, 2009 2:27 PM To: ruby-talk ML Subject: what does \s* means? what does the .\s* means in the following commad class String def sentences gsub(/\n|\r/, ' ').split(/\.\s*/) end end -- Posted via http://www.ruby-forum.com/.