Regex
final class Regex implements RegexInterface, JsonSerializable, Type, Stringable (View source)
Class Regex
Methods
__construct(string $pattern, string $flags = '')
Construct a new Regex
string
getFlags()
Returns the Regex's flags
string
getPattern()
Returns the Regex's pattern
string
__toString()
Returns the string representation of this Regex
static Regex
__set_state(array $properties)
No description
mixed
jsonSerialize()
Returns a representation that can be converted to JSON
Details
final
__construct(string $pattern, string $flags = '')
Construct a new Regex
final string
getFlags()
Returns the Regex's flags
final string
getPattern()
Returns the Regex's pattern
final string
__toString()
Returns the string representation of this Regex
static Regex
__set_state(array $properties)
No description
final mixed
jsonSerialize()
Since: 1.2.0
Returns a representation that can be converted to JSON