PHP Class GrumPHP\Util\Regex

Datei anzeigen Open project: phpro/grumphp Class Usage Examples

Protected Properties

Property Type Description
$regex string

Public Methods

Method Description
__construct ( $string ) Regex constructor.
__toString ( ) : string Returns the new regex.
addPatternModifier ( string $modifier )

Private Methods

Method Description
isRegex ( string $string ) : boolean Checks whether the string is a regex.
toRegex ( string $string ) : string

Method Details

__construct() public method

Regex constructor.
public __construct ( $string )
$string

__toString() public method

Returns the new regex.
public __toString ( ) : string
return string

addPatternModifier() public method

public addPatternModifier ( string $modifier )
$modifier string

Property Details

$regex protected_oe property

protected string $regex
return string