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 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 doesn't
>work.
>
>BTW, some links of POSIX regular expression are welcome.
>
>thanks in advance
>
>~JAAV
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to