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
getLimit() : integer
integer
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.
preparePattern(string $pattern) : string
string
string
prepared pattern.
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
setLimit(integer $limit)
integer
setModifiers(string $mods) : void
string
Modifiers to be applied to a given regex
setMultiline(boolean $bit)
boolean
DELIMITER
ignoreCase : boolean
var |
---|
boolean
multiline : boolean
var |
---|
boolean
modifiers : string
limit : integer
var |
---|
integer