Another regular expression question

2001-04-24 Thread JAAV
Hi, Yes, I'm a newbie :) but it's a short question: How can I check if an string contains alpha-numeric characters only? I'm trying to check if a login name (given by the user) is valid or not. I'm using something like: #REFindNoCase('[[:alpha]]*|[[:digit]]*',attributes.usuario)# but it

Re: Another regular expression question

2001-04-24 Thread Mark Woods
REFind([^[:alnum:]],attributes.usuario) will find any non-alphanumeric characters The cf 4.0 docs have a decent intro chapter on regular expressions in the advanced book: http://www.allaire.com/documents/cf4/dochome.htm At 11:23 AM 4/24/2001, you wrote: Hi, Yes, I'm a newbie :) but it's

RE: Another regular expression question

2001-04-24 Thread Paul Johnston
using a ^ says not one of these and using [] says group these together how about saying if you find something that is not a number or a letter: cfif REFindNoCase('^[A-Z0-9]', variable) ERROR cfelse do processing /cfif what you said is: find 0 or more alpha chars and 0 or more digits next to

Re: Another regular expression question

2001-04-24 Thread JAAV
Thanks Mark and Paul... it works!! - Original Message - From: Paul Johnston [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, April 24, 2001 12:47 PM Subject: RE: Another regular expression question using a ^ says not one of these and using [] says group these together