I have the following var ThisVar= foo_1_bar
I'd like to dynamically extract foo_ and _bar.
And store the new value (1) in a new var.
Using this <cfset ThisNewVar= rereplacenocase ThisVar,"foo_","","ALL")>
I am able to extract the foo_ regular expression.
I could not find a way to extract both regular expressions (foo and bar) and store the new value in the new var(ThisNewVar).
Any help would be appreciated