A factory class for regex functions.
| author |
Hans Lellelid hans@xmpl.org |
|---|---|
| package |
phing.util.regexp |
| version |
$Id$ |
__construct($engineType = 'preg')
setPattern(string $pat) : void
stringThe pattern to match on.
getPattern() : string
stringThe pattern to match on.
setReplace(string $rep) : void
stringThe pattern to replace matches with.
getReplace() : string
stringThe pattern to replace matches with.
matches(string $subject) : boolean
stringThe subject, on which to perform matches.
booleanWhether or not pattern matches subject string passed.
replace(string $subject) : string
stringText on which to perform replacement.
stringsubject after replacement has been performed.
getGroups() : array
arrayMatched groups
getGroup(integer $idx) : string
integer
stringspecified group or NULL if group is not set.
setModifiers(string $mods) : void
stringModifiers to be applied to a given regex
getModifiers() : string
Subsequent call to engines getModifiers() filters out duplicates i.e. if i is provided in $mods, and setIgnoreCase(true), "i" modifier would be included only once
string
setIgnoreCase(boolean $bit)
(default is false -- i.e. case sensisitive)
boolean
getIgnoreCase() : boolean
boolean
setMultiline(boolean $bit)
boolean
getMultiline() : boolean
boolean
groups : array
| var |
|---|
array
pattern : string
| var |
|---|
string
replace : string
| var |
|---|
string