# RegexInterface

Chevere\Interfaces\Regex\RegexInterface

view source (opens new window)

# 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

  • pattern: string

# 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

Return

array


# matchAll

Matches all string.

Parameters

  • string: string

Return

array


# toString

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

Return

string


Last Updated: 5/1/2021, 2:31:10 PM