classes/phing/util/regexp/RegexpEngine.php
Contains some shared attributes and methods -- and some abstract methods with
engine-specific implementations that sub-classes must override.
- author
- Hans Lellelid
- package
- phing.util.regexp
- version
- $Revision: 1207 $
Contains some shared attributes and methods -- and some abstract methods with
engine-specific implementations that sub-classes must override.
- author
- Hans Lellelid
- package
- phing.util.regexp
- version
- $Revision: 1207 $
Methods



match(
string $pattern, string $source, array $matches
)
:
booleanMatches pattern against source string and sets the matches array.
Parameters
| Name |
Type |
Description |
| $pattern |
string |
The regex pattern to match. |
| $source |
string |
The source string. |
| $matches |
array |
The array in which to store matches. |
Returns



matchAll(
string $pattern, string $source, array $matches
)
:
booleanMatches all patterns in source string and sets the matches array.
Parameters
| Name |
Type |
Description |
| $pattern |
string |
The regex pattern to match. |
| $source |
string |
The source string. |
| $matches |
array |
The array in which to store matches. |
Returns



replace(
string $pattern, string $replace, string $source
)
:
stringReplaces $pattern with $replace in $source string.
Parameters
| Name |
Type |
Description |
| $pattern |
string |
The regex pattern to match. |
| $replace |
string |
The string with which to replace matches. |
| $source |
string |
The source string. |
Returns



setIgnoreCase(
boolean $bit
)
:
voidSets whether or not regex operation should ingore case.
Parameters
| Name |
Type |
Description |
| $bit |
boolean |
|