# RegexInterface
Chevere\Interfaces\Regex\RegexInterface
# Extends
# Description
Describes the component in charge of interacting with PCRE - Perl Compatible Regular Expressions.
# Constants
# ERRORS
Type array
array (
0 => 'PREG_NO_ERROR',
1 => 'PREG_INTERNAL_ERROR',
2 => 'PREG_BACKTRACK_LIMIT_ERROR',
3 => 'PREG_RECURSION_LIMIT_ERROR',
4 => 'PREG_BAD_UTF8_ERROR',
5 => 'PREG_BAD_UTF8_OFFSET_ERROR',
6 => 'PREG_JIT_STACKLIMIT_ERROR',
)
# Methods
# __construct()
# Parameters
- string
$pattern
THROWS
# toNoDelimiters()
Provides access to the the regex string without delimiters.
RETURN
string
# toNoDelimitersNoAnchors()
Provides access to the regex string without delimiters and without anchors (^
, $
).
RETURN
string
# match()
Matches string.
# Parameters
- string
$string
THROWS
RETURN
array
# matchAll()
Matches all string.
# Parameters
- string
$string
THROWS
RETURN
array
# toString()
Returns a string, representing the object itself or some of its data/properties.
RETURN
string