From: David Balmain Date: 2007-02-14T09:18:46+09:00 Subject: Re: Puzzling regex behaviour On 2/14/07, Ian Macdonald wrote: > On Wed 14 Feb 2007 at 09:08:17 +0900, David Balmain wrote: > > > On 2/14/07, Ian Macdonald wrote: > > > > > >I should have asked by now, but can anyone else reproduce this with > > >Ruby 1.8.5? > > > > I can reproduce this 1.8.4 > > Just to be clear, you are confirming that the following code: > > foo = "pr�f�r�es" > p foo =~ /[^[:alnum:]]/ > > prints nil in irb and 2 in a stand-alone script when in both cases your > locale is preset to nl_NL? Not nl_NL but en_US.ISO-8859-1. I get the same results as you. -- Dave Balmain http://www.davebalmain.com/