public function getRegex()
    {
        /** @var ApiRegex $constraint */
        if ($constraint = $this->docBlockUtility->getConstraint($this->property, ApiRegex::class)) {
            return $constraint->pattern;
        }
    }
public function getRegex()
    {
        /** @var ApiRegex $constraint */
        if ($constraint = $this->docBlockUtility->getConstraint($this->property, ApiRegex::class)) {
            return $constraint->pattern;
        }
    }
public function getRegex ( ) { /** @var ApiRegex $constraint */ if ( $ constraint = $ this -> docBlockUtility -> getConstraint ( $ this -> property , ApiRegex :: class ) ) { return $ constraint -> pattern ; } }
Get the Regex assertion pattern if it exists.

@return string|null
Get the Regex assertion pattern if it exists .