From: Tim Greer Date: 2009-01-08T03:14:49+09:00 Subject: Re: Simple Regexp help Robert Klemme wrote: > irb(main):001:0> s = "foo\n" > => "foo\n" > irb(main):002:0> /^[a-z]+$/i =~ s > => 0 > Not knowing exactly what the OP wanted, it was only a quick example, so what is "safe" is relative. Anyway, the use of \A and \z is indeed probably a better example regardless of not knowing exactly what they want. -- Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc. Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers and Custom Hosting. 24/7 support, 30 day guarantee, secure servers. Industry's most experienced staff! -- Web Hosting With Muscle!