PHP Class Texy\Regexp

Inheritance: use trait Strict
Mostra file Open project: dg/texy Class Usage Examples

Public Methods

Method Description
match ( $subject, $pattern, $flags, $offset ) : mixed Performs a regular expression match.
replace ( $subject, $pattern, $replacement = NULL ) : string Perform a regular expression search and replace.
split ( $subject, $pattern, $flags ) : array Splits string by a regular expression.

Method Details

match() public static method

Performs a regular expression match.
public static match ( $subject, $pattern, $flags, $offset ) : mixed
return mixed

replace() public static method

Perform a regular expression search and replace.
public static replace ( $subject, $pattern, $replacement = NULL ) : string
return string

split() public static method

Splits string by a regular expression.
public static split ( $subject, $pattern, $flags ) : array
return array