From: Xavier Noria Date: 2008-03-27T01:59:02+09:00 Subject: Re: Is possible Ruby to use CRLF instead of LF? On Mar 26, 2008, at 17:39 , mrhassell wrote: > The dot matches a single char, no care 4 what the character is. The > exception is newline characters. In regex things, the dot will 'not > match' a newline character by default. So by default, the dot is short > for the negated character class [^\n] (UNIX regex flavors) or [^\r\n] > (Windows regex flavors)... Careful, the dot does match \r. The dot is exactly [^\n] (modulus /m). What happens is that in ordinary line-oriented, portable code, you don't see a single \r in Ruby strings. The CRs on Windows are on the disk but don't go up because the I/O layer filters them. -- fxn