Using the pattern in _javascript_ (which is how cfinput checks) is
different from CF. You can write the same thing as a JS regex (I'd have
to play around to get it right, but it should be awful similar) but I
was writing a CF regex.
All we had here was a failure to communicate....
:-)
--Ben
Todd wrote:
> Yes. The pattern attribute of cfinput does in fact seem to be the culprit.
> I tell it ^[a-zA-Z0-9]{6,20}$ and it generates this:
>
> if (!_CF_checkregex(_CF_this.password.value, /\w{6,}/))
>
> ----- Original Message -----
> From: "Todd" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Friday, June 25, 2004 5:20 PM
> Subject: Re: A little regexp help
>
> > 6.1 Enterprise
> >
> > I'm beginning to think it's some screwy thing with the pattern attribute.
> I
> > should probably just break it out into a seperate _javascript_ function and
> be
> > done with it.
> >
> > ----- Original Message -----
> > From: "Ben Doom" <[EMAIL PROTECTED]>
> > To: "CF-Talk" <[EMAIL PROTECTED]>
> > Sent: Friday, June 25, 2004 5:08 PM
> > Subject: Re: A little regexp help
> >
> >
> > > When I tested ^[a-zA-Z0-9]{6,20}$ against "astrjuh" it matched, but not
> > > when I tested it against "astrjuh$".
> > >
> > > What version of CF are you using?
> > >
> > > --Ben
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

