InlineParserMatch
in package
FinalYes
Table of Contents
Properties
- $caseSensitive : bool
- $regex : string
Methods
- caseSensitive() : self
- join() : self
- oneOf() : self
- Match any of the given strings (case-insensitive)
- regex() : self
- Match a partial regular expression without starting/ending delimiters, anchors, or flags
- string() : self
- Match the given string (case-insensitive)
- __construct() : mixed
Properties
$caseSensitive
private
bool
$caseSensitive
$regex
private
string
$regex
Methods
caseSensitive()
public
caseSensitive() : self
Return values
selfjoin()
public
static join(self ...$definitions) : self
Parameters
- $definitions : self
Return values
selfoneOf()
Match any of the given strings (case-insensitive)
public
static oneOf(string ...$str) : self
Parameters
- $str : string
Return values
selfregex()
Match a partial regular expression without starting/ending delimiters, anchors, or flags
public
static regex(string $regex) : self
Parameters
- $regex : string
Return values
selfstring()
Match the given string (case-insensitive)
public
static string(string $str) : self
Parameters
- $str : string
Return values
self__construct()
private
__construct(string $regex[, bool $caseSensitive = false ]) : mixed
Parameters
- $regex : string
- $caseSensitive : bool = false