The String Replace app simply does what the name says: it replaces strings in incoming textfiles, private data or attached metadata.
It works (in file mode) on file-based jobs only, folder-based jobs are sent directly to the output. In metadata or private data mode, it also works on job folders. It uses the JavaScript replace syntax, and allows to replace multiple strings. The JavaScript replace syntax also allows to use regex for replacements. The replacement of strings takes part top-down, so it also allows to replace recursively.
You could use this app for example to replace some strings in an incoming XML file, without having to write a complete XSLT.
In version 2 support for a text-encodings is added.
In version 3 support for a different separator-symbol is added.
In version 4 support for a metadata and private data is added.
I got an small issue,
Replace the « + » char does not work like the string replacer :
« ++=+ » (inside a loop for my case)
I found that we need to type :
\+\+=\+ or \+\+=+
I can’t use with a « replace type » of regex ..
We use String Replace to make changes to our JDFs as they pass through the flow. Seems like the perfect tool for the job.
String Replace has been an invaluable tool in my flows. Using it to replace variables inside an xml, private data, and to correct certain bad xmls. Easy to use and understand. (Just make sure there are no spaces on either side of the separator "=")
Easy to use, but for more complex replacements the manual is lacking in terms of good examples.
Such a great app! I don't know how to code but can do so much with this little app. Had a problem with an xml string and got a very quick response. Love this app, and seems like good people too...