/
replaceAll

replaceAll

Function: replaceAll()

Replace all occurrences of a pattern with a replacement string.

Syntax

replaceAll(listToCheck, findPattern, replacementString)

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.

If in.fileName = "20060712file-proc20070103-1263", this returns "file-proc-1263".

See Also

Related content

replaceAll
replaceAll
More like this
replaceAll
replaceAll
More like this
replaceAll
replaceAll
More like this
replaceAll
replaceAll
More like this
replaceAll
replaceAll
More like this
replaceAll
More like this