I am trying to use a regular expression to change all possible special characters in a string to underscores because I am trying to use the string as a variable name.
Regular expressions are not my specialty and I am running into problems using some characters in my reReplace function. Could somebody offer some suggestions on making this work? I am needing to replace !@#$%^&*()-+={[}]|\:;"'<,>.?/ plus a blank space, all with the _ character. Thanks -- Jeff ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm