Bart Braem wrote:

> MonkeeSage wrote:
> 
>> I.e., you were matching on either side of the @
>> 
> Oh boy, you are right! Thanks for the explanation.
> I will try it with:
> string =~ /^\w+\.\w+\z/
> 
> But is there a ruby operator to look for matches on the entire string?

string =~ /^\w+\.\w+$/

Must match the entire string. Because of multiline issues, where that is a
factor, you can always split on newlines in advance of this test to be sure
you are matching the entire string unambiguously.

-- 
Paul Lutus
http://www.arachnoid.com