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 |
setModifiers(string $mods) : void
stringModifiers to be applied to a given regex
getModifiers() : string
string
setIgnoreCase(boolean $bit) : void
boolean
getIgnoreCase() : boolean
boolean
setMultiline(boolean $bit)
boolean
getMultiline() : boolean
boolean
preparePattern(string $pattern) : string
string
stringprepared pattern.
match(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.
ignoreCase : boolean
| var |
|---|
boolean
multiline : boolean
| var |
|---|
boolean
modifiers : string
| link |
http://php.net/manual/en/reference.pcre.pattern.modifiers.php |
|---|---|
| var |
string