Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Excerpt
hiddentrue

replaceAll(listToCheck, findPattern, replacementString) Replace all occurrences of a pattern with a replacement string.


Function: replaceAll()

Replace all occurrences of a pattern with a replacement string.

...

ArgumentTypeDescription
listToCheckArrayList of strings to evaluate
findPatternRegular ExpressionPattern to be matched in listToCheck
replacementStringStringString to replace matching pattern in list

Examples

replaceAll(in.fileName, "[0-9]{8}", "")

replaceAll() removes all strings of 8 digits from file names contained in the attribute in.fileName.

...