public function is($pattern)
    {
        return (bool) Str::matches($this->retrieveValue($pattern), $this->string);
    }
public function is($pattern)
    {
        return (bool) Str::matches($this->retrieveValue($pattern), $this->string);
    }
public function is ( $ pattern ) { return ( bool ) Str :: matches ( $ this -> retrieveValue ( $ pattern ) , $ this -> string ) ; }
Return true if String matches the supplied pattern, false otherwise.

@param string|StringContract $pattern
@return bool
Return true if String matches the supplied pattern false otherwise .