Dan Muey wrote:
>
> [EMAIL PROTECTED] wrote:
> >
> > I'm trying to validate if a string contains \w and required
> atleas one
> > period (.)
>
> By \w do you mean just whitespace or '\\w'?
Isn't \w a-zA-Z0-9_ ??
And whitespace \s ??
Yes. Getting muddled up for some reason - thanks Dan.
At least
> -Original Message-
> From: Rob Dixon [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 03, 2003 4:19 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Validate String w/required period
>
>
> [EMAIL PROTECTED] wrote:
> >
> > I'm trying to vali
[EMAIL PROTECTED] wrote:
>
> I'm trying to validate if a string contains \w and required atleas one
> period (.)
By \w do you mean just whitespace or '\\w'?
> This one check but does not require a period. Can someone change
> it please?
>
> sub isValidDomain { return shift =~ /^[\w\.]{3,}$/ }
-
I'm trying to validate if a string contains \w and required atleas one
period (.)
This one check but does not require a period. Can someone change it please?
sub isValidDomain { return shift =~ /^[\w\.]{3,}$/ }
thanks,
-rkl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,