class TexyRegexp

This file is part of the Texy! (http://texy.info) Copyright (c) 2004 David Grudl (https://davidgrudl.com)

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 30
static array split($subject, $pattern, $flags = 0)

Splits string by a regular expression.

Parameters

$subject
$pattern
$flags

Return Value

array

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

Performs a regular expression match.

Parameters

$subject
$pattern
$flags
$offset

Return Value

mixed

at line 77
static string replace($subject, $pattern, $replacement = NULL)

Perform a regular expression search and replace.

Parameters

$subject
$pattern
$replacement

Return Value

string