Replacing strings, regular expressions

I want to do a string replacement in a prerule block using regular expressions. I know there is a function, but I can not find it. Tips

I think something like this:

origStr = "Original-string-has-hyphens";
newStr = origStr.replace(re/-/ /g);

Result: newStr = "Original string has hyphens".

EDIT: I just realized that a few years ago I asked a similar question , but I never had a working answer.

+3
source share
2 answers

The documentation can be found at http://docs.kynetx.com/docs/Replace I found it using my Kynetx document search tool http://supersearcher.michaelgrace.org/

+4
source

What about origStr.replace("-", " ");

0
source

All Articles