B.51 ReplaceRegexpTask

Replaces the occurrences of a given regular expression with a substitution pattern in a selected file or set of files.

Table B.53: 

NameTypeDescriptionDefaultRequired
file String File to apply regular expression onn/aYes (or fileset)
match String Regular expression match patternn/aYes (or pattern)
pattern String Regular expression match patternn/aYes
replace String The replacement stringn/aYes
flags String Regular expression flagsn/ano
failonerror Boolean If set to true, the task will fail on errorfalseNo

B.51.1 Supported Nested Tags