classes/phing/filters/LineContainsRegexp.php
\LineContainsRegexp
Filter which includes only those lines that contain the user-specified regular expression matching strings.
Example:
Or:
This will fetch all those lines that contain the pattern foo
- Extends from
- \BaseParamFilterReader
- Implements
- \ChainableReader
- see
- \FilterReader
- author
- Yannick Lecaillez
- author
- Hans Lellelid
- copyright
- © 2003 seasonfive. All rights reserved
- package
- phing.filters
- version
- $Revision: 526 $
Constants
Properties
Methods

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

getRegexps(
)
:
arrayReturns the array of regular expressions which must be contained within
a line read from the original stream in order for it to match this
filter.
| Type | Description |
|---|---|
| array |

read(
$len
=
null
)
:
mixedReturns all lines in a buffer that contain specified strings.
| Name | Type | Description |
|---|---|---|
| $len |
| Type | Description |
|---|---|
| mixed |

setRegexps(
\regexps $regexps
)
:
Sets the vector of regular expressions which must be contained within
a line read from the original stream in order for it to match this
filter.
| Name | Type | Description |
|---|---|---|
| $regexps | \regexps | An array of regular expressions which must be contained within a line in order for it to match in this filter. Must not be |