On Wed, 12 Oct 2011 23:35:49 +0000, kennytm wrote: > Most regex flavors don't match '\n' by default unless you supply the "s" > flag -- including ECMAScript (well it doesn't even provide the "s" flag > to allow '.' to match all characters).
Really? Sense when? I didn't know there was any that didn't match \n. If you want to match everything not a new line [^\n].