How to manipulate strings using Regular Expressions?
Hi,
I have a piece of code where I need to remove all blank spaces, slashes ("/" and "\"), etc with an underscore ("_").
I'm currently doing it in 2 lines:
<!--- Remove blank spaces --->
<cfset columnName = replaceNoCase(trim(arguments.queryObject[item])," ","_","All")>
<!--- Remove slash --->
<cfset columnName = replaceNoCase(trim(columnName),"/","_","All")>
Is there a much simpler way to do the above in 1 line?
Thanks and regards,
Yogesh Mahadnac
