From: Bart Braem Date: 2006-09-16T00:15:57+09:00 Subject: Regular expression for string.anotherstring I'm trying to validate a user mail address for a fixed domain with the rule string =~ /\w+\.\w+/ this matches firstname.lastname, which is what I want. But it also matches fistname.lastname@somedomain.com, which is not what I want. Why does that match? I'm having this in Rails, but I guess the quoting will not escape @ signs? Bart