src/PayloadBuilders/ContentTypeValidation.php
function regexp($pattern, $flags = null) {
        $regexp['pattern'] = $pattern;
        if ($flags) $regexp['flags'] = $flags;
        $this->data['regexp'] = $regexp;
        return $this;
    }
function regexp($pattern, $flags = null) {
        $regexp['pattern'] = $pattern;
        if ($flags) $regexp['flags'] = $flags;
        $this->data['regexp'] = $regexp;
        return $this;
    }
function regexp ( $ pattern , $ flags = null ) { $ regexp [ 'pattern' ] = $ pattern ; if ( $ flags ) $ regexp [ 'flags' ] = $ flags ; $ this -> data [ 'regexp' ] = $ regexp ; return $ this ; }
Validates that the value of a field matches a Regular Expression.
@param $pattern
@param null $flags
@return $this
Validates that the value of a field matches a Regular Expression .