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
booleangetModifiers() : string
stringgetMultiline() : boolean
booleanmatch(string $pattern, string $source, array $matches) : boolean
stringThe regex pattern to match.
stringThe source string.
arrayThe array in which to store matches.
booleanSuccess of matching operation.matchAll(string $pattern, string $source, array $matches) : boolean
stringThe regex pattern to match.
stringThe source string.
arrayThe array in which to store matches.
booleanSuccess of matching operation.replace(string $pattern, string $replace, string $source) : string
References to \1 group matches will be replaced with more preg-friendly $1.
stringThe regex pattern to match.
stringThe string with which to replace matches.
stringThe source string.
stringThe replaced source string.setIgnoreCase(boolean $bit) : void
boolean
setModifiers(string $mods) : void
stringModifiers to be applied to a given regex
setMultiline(boolean $bit)
boolean
preparePattern(string $pattern) : string
string
stringprepared pattern.$ignoreCase : boolean
$modifiers : string
$multiline : boolean