classes/phing/filters/ReplaceRegexp.php
\ReplaceRegexp
Performs a regexp find/replace on stream.
<
p>
Example:
- Extends from
- \BaseFilterReader
- Implements
- \ChainableReader
- author
- Hans Lellelid
- package
- phing.filters
- version
- $Revision: 779 $
Properties
Methods

chain(
\Reader $reader
)
:
\ReplaceRegExpCreates a new ReplaceRegExp filter using the passed in
Reader for instantiation.
| Name | Type | Description |
|---|---|---|
| $reader | \Reader | A Reader object providing the underlying stream. Must not be |
| Type | Description |
|---|---|
| \ReplaceRegExp |

createRegexp(
)
:
\RegularExpressionCreator method handles nested tags.
| Type | Description |
|---|---|
| \RegularExpression |

getRegexps(
)
:
arrayGets the current regexps.
(Used when, e.g., cloning/chaining the method.)
| Type | Description |
|---|---|
| array |

read(
int $len
=
null
)
:
mixedReturns the filtered stream.
The original stream is first read in fully, and the regex replace is performed.
| Name | Type | Description |
|---|---|---|
| $len | int | Required $len for Reader compliance. |
| Type | Description |
|---|---|
| mixed |
- exception
- IOException if the underlying stream throws an IOException during reading