functions start with RE.
This regexp:
^ beginning of string
[ start character set
[:alnum:] alpha-numeric character class
] end character set
{6,10} repeat character set 6 to 10 times
$ end of string
There is some stuff in the CF help. I also have a ppt of a session I
thought at DEVCON2002 on CF & regexp. If you want it, you can email me
off-list
Pascal
> -----Original Message-----
> From: Stuart Kidd [mailto:[EMAIL PROTECTED]
> Sent: maandag 26 januari 2004 16:09
> To: CF-Talk
> Subject: RE: More Password Validation
>
> Hi Pascal, that works a treat. But what is regexp? And what does the
> ^[[: bit mean for further use? Is there stuff in the manual
> about that?
>
> -----Original Message-----
> From: Pascal Peters [mailto:[EMAIL PROTECTED]
> Sent: 26 January 2004 14:59
> To: CF-Talk
> Subject: RE: More Password Validation
>
> Use regexp
>
> <cfif REFind("^[[:alnum:]]{6,10}$",form.password)>
> OK
> <cfelse>
> NOT OK
> </cfif>
>
> Means : password can only contain alpha-numeric characters
> and has to be
> 6 to 10 characters long.
>
> Pascal
>
> > -----Original Message-----
> > From: Stuart Kidd [mailto:[EMAIL PROTECTED]
> > Sent: maandag 26 januari 2004 15:52
> > To: CF-Talk
> > Subject: More Password Validation
> >
> > Hi guys,
> >
> > I'm also trying to check my password only contains certain
> characters
> > i.e. only a-z and 0-9.
> >
> > <cfset chr_list
> > ='a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,0,1,2,3,
> > 4,5,6,7,8,
> > 9'>
> >
> > I've made a list of characters I'd like to check but am
> trying to work
> > out how to use maybe the CONTAINS function.
> >
> > <cfif form.password contains???
> >
> > Thanks,
> >
> > Stuart
> >
> >
> >
> _____
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

