Use a regular expression. REReplace() can replace all characters not
matching those specified.

Example: REReplace(mystring, "[^a-zA-Z0-9]", "", "ALL")

If you just want to find the character use REFind().

Example: REFind("[^a-zA-Z0-9]", mystring, 1)

Using REFind(), you'll have to loop over the string to find more than one
occurrence of a non-alphanumeric character. An advantage is that REFind()
can also return the characters and store them in a structure for further
investigation if needed.

Steve

-----Original Message-----
From: Vani Kolli [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 10:44 AM
To: CF-Talk
Subject: need help..


Hi all,

I have a form field and i want to check if there is any special character
typed in instead of alphabets and numbers.
Is there any tag in cf to find it.

I remember doing it in Perl, but not sure of cf.

Any help would be appreciated. Thanks

Vani


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to