Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q3000 Is there an IsAlphanumeric function in ColdFusion?

irt.org | Knowledge Base | ColdFusion | Q3000 [ previous next ]

Q3000 Is there an IsAlphanumeric function in ColdFusion?

No, but you can use regular expressions to check this fairly easily.

<cfif REFind("[^A-Za-z0-9]",mystring,1) gt 0>
 This string contains characters that are not alphanumeric.
<cfelse>
 This string contains only alphanumeric characters.
</cfif>

Feedback on 'Q3000 Is there an IsAlphanumeric function in ColdFusion?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.