troubleshooting Question

Need help with Cold Fusion "Replace"

Avatar of earwig75
earwig75 asked on
Microsoft SharePointColdFusion Language
3 Comments1 Solution423 ViewsLast Modified:
I have something like the below code. I have a variable called "monitor" that will contain a text string.  Sometimes this string will have something like ABC 1234 in it... If it does I want it stripped out/replaced with nothing. So, if my variable is "monitor ABC 7777" I just want it converted to "monitor". The ABC remains the same but the numbers can possibly be different.

Can someone help? Does what I have below look correct?

<cfhttpparam name="SendMonitor" type="CGI" value="#replace(URL.Monitor,"ABC %%%%","","all")#">
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros