class Regexp

Constants

ALL

OFFSET_CAPTURE

Methods

static array
split($subject, $pattern, $flags = 0)

Splits string by a regular expression.

static mixed
match($subject, $pattern, $flags = 0, $offset = 0)

Performs a regular expression match.

static string
replace($subject, $pattern, $replacement = null)

Perform a regular expression search and replace.

Details

at line 34
static array split($subject, $pattern, $flags = 0)

Splits string by a regular expression.

Parameters

$subject
$pattern
$flags

Return Value

array

at line 53
static mixed match($subject, $pattern, $flags = 0, $offset = 0)

Performs a regular expression match.

Parameters

$subject
$pattern
$flags
$offset

Return Value

mixed

at line 81
static string replace($subject, $pattern, $replacement = null)

Perform a regular expression search and replace.

Parameters

$subject
$pattern
$replacement

Return Value

string

Traits

Better OOP experience.