tasks/ext/ReplaceRegexpTask.php
ReplaceRegExp is a directory based task for replacing the occurrence of a given regular expression with a substitution pattern in a selected file or set of files.
- Author
- Jonathan Bond-Caron
- Link
- http://ant.apache.org/manual/OptionalTasks/replaceregexp.html
- Package
- phing.tasks.system
- Version
- $Id: ReplaceRegexpTask.php 1110 2011-05-23 16:00:43Z mrook $
\ReplaceRegexpTask
Package: phing\tasks\system
ReplaceRegExp is a directory based task for replacing the occurrence of a given regular expression with a substitution pattern in a selected file or set of files.
- Parent(s)
- \Task < \ProjectComponent
- Author
- Jonathan Bond-Caron
- Link
- http://ant.apache.org/manual/OptionalTasks/replaceregexp.html
- Version
- $Id: ReplaceRegexpTask.php 1110 2011-05-23 16:00:43Z mrook $
Properties
Methods

setFlags(
string $flags
)
:
voidSets the regexp flags
Parameters
| Name | Type | Description |
|---|---|---|
| $flags | string |

setMatch(
string $regexp
)
:
voidSets the regexp match pattern
Parameters
| Name | Type | Description |
|---|---|---|
| $regexp | string |

setReplace(
string $string
)
:
voidSets the replacement string
Parameters
| Name | Type | Description |
|---|---|---|
| $string | string |