Replaces the occurrences of a given regular expression with a substitution pattern in a selected file or set of files.
Table B.53:
Name | Type | Description | Default | Required |
---|---|---|---|---|
file
|
String
| File to apply regular expression on | n/a | Yes (or fileset )
|
match
|
String
| Regular expression match pattern | n/a | Yes (or pattern )
|
pattern
|
String
| Regular expression match pattern | n/a | Yes |
replace
|
String
| The replacement string | n/a | Yes |
flags
|
String
| Regular expression flags | n/a | no |
failonerror
|
Boolean
| If set to true, the task will fail on error | false | No |