PREG Regexp Engine.
Implements a regexp engine using PHP's preg_match(), preg_match_all(), and preg_replace() functions.
author | hans lellelid, hans@velum.net |
---|---|
package | phing.util.regexp |
getIgnoreCase() : boolean
boolean
getModifiers() : string
string
getMultiline() : boolean
boolean
match(string $pattern, string $source, array $matches) : boolean
string
The regex pattern to match.
string
The source string.
array
The array in which to store matches.
boolean
Success of matching operation.matchAll(string $pattern, string $source, array $matches) : boolean
string
The regex pattern to match.
string
The source string.
array
The array in which to store matches.
boolean
Success of matching operation.replace(string $pattern, string $replace, string $source) : string
References to \1 group matches will be replaced with more preg-friendly $1.
string
The regex pattern to match.
string
The string with which to replace matches.
string
The source string.
string
The replaced source string.setIgnoreCase(boolean $bit) : void
boolean
setModifiers(string $mods) : void
string
Modifiers to be applied to a given regex
setMultiline(boolean $bit)
boolean
preparePattern(string $pattern) : string
string
string
prepared pattern.$ignoreCase : boolean
$modifiers : string
$multiline : boolean