I'd like to do string replacement in the pre
block of a rule using regular expressions. I know there is a function to do that, but I can't find it. Hints?
I'm thinking something like this:
origStr = "Original-string-has-hyphens";
newStr = origStr.replace(re/-/ /g);
The result being that newStr = "Original string has hyphens"
.
EDIT: Just realized that I asked a similar question a few months ago, but I never quite got a working answer.