> /^[a-zA-Z][\w\-\.]{3,}$/ && /\./ The above matches more than 1 period.
I MUST have 1 and ONLY 1 period. Also, can I fit it on one line? this doesn't work either sub isValidDomain { return shift =~ /^[a-zA-Z0-9][\w\-\.]{3,}$/ } thanks --- > How about something like: > > /^[a-zA-Z][\w\-\.]{3,}$/ && /\./ > > On Fri, 2003-10-10 at 16:58, [EMAIL PROTECTED] wrote: > here's the rules: > starts with alphanumeric > 4 chars long > require one period > >> /^[a-zA-Z][\w\-\.]{3,}$/ >> >> I think my regex is not doing the required period. >> >> thanks, >> -rkl >> >> >> ----------------------------------------- >> eMail solutions by >> http://www.swanmail.com > > ----------------------------------------- eMail solutions by http://www.swanmail.com ----------------------------------------- eMail solutions by http://www.swanmail.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]