From: "David A. Black" Date: 2008-09-01T18:26:38+09:00 Subject: Re: Looking for a regular pattern Hi -- On Mon, 1 Sep 2008, Sebastian Hungerecker wrote: > Zhao Yi wrote: >> Why? It should match any character. > > Yes, but so does just . when you specify the m modifier. So why make it [.\s] > if you can just do . ? It depends whether you want to use . without including \n somewhere else in your regex, and therefore don't want the m modifier. David -- Rails training from David A. Black and Ruby Power and Light: Intro to Ruby on Rails January 12-15 Fort Lauderdale, FL Advancing with Rails January 19-22 Fort Lauderdale, FL * * Co-taught with Patrick Ewing! See http://www.rubypal.com for details and updates!