I got the isAlphabet function from cflib.org &  I was wondering how 
could I modify it to allow (1) Parenthisis; (2) Semicolon; (3) Commas; 
(4) New lines... (For Textareas); (5) excelamation point, Question Mark, 
Dash/Hyphen [-], Ampresand [&], quotation marks; (6) Dollar Sign.  The 
regular expression that it is currently using is: 
reFindNoCase("[^a-z\.[:space:]]",str)


<cfscript>
/**
 * This UDF confirms whether a string contains only letters.
 *
 * @param str      String to check. (Required)
 * @return Returns a boolean.
 * @author Takaki Saito ([EMAIL PROTECTED])
 * @version 1, June 21, 2002
 */
   function IsAlphabet(str) {
       return not reFindNoCase("[^a-z\.[:space:]]",str);
   }
   </cfscript>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to