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
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
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
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
4 matches
Mail list logo