Regex
final class Regex implements Type, RegexInterface, Serializable, JsonSerializable (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
__set_state(array $properties)
No description
string|null
serialize()
Serialize a Regex
void
unserialize(string $data)
Unserialize a Regex
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
__set_state(array $properties)
No description
final string|null
serialize()
Since: 1.2.0
Serialize a Regex
final void
unserialize(string $data)
Since: 1.2.0
Unserialize a Regex
final mixed
jsonSerialize()
Since: 1.2.0
Returns a representation that can be converted to JSON