From: Peter Hickman Date: 2008-09-01T18:16:44+09:00 Subject: Re: Looking for a regular pattern Zhao Yi wrote: > Sebastian Hungerecker wrote: > >> Zhao Yi wrote: >> >>> I think this is better [.\s] >>> >> No, it's not. >> > > Why? It should match any character. > From the docs, http://www.ruby-doc.org/docs/UsersGuide/rg/regexp.html |\s| space character; same as |[ \t\n\r\f] That is not any character it is only whitespace. |