# RegexInterface

Chevere\Interfaces\Regex\RegexInterface

view source

# 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

  1. string $pattern

# 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

  1. string $string

RETURN

array


# matchAll()

Matches all string.

# Parameters

  1. string $string

RETURN

array


# toString()

Returns a string, representing the object itself or some of its data/properties.

RETURN

string


Last Updated: 1/16/2021, 9:23:54 PM