There is stuff in the manual about all of this.

-----Original Message-----
From: Stuart Kidd [mailto:[EMAIL PROTECTED]
Sent: Monday, January 26, 2004 10:09 AM
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]

Reply via email to