src/Str.php
public function is($value, $wildcards = true, $caseSensitive = true)
	{
		if($this->str == $value)
			return true;

		return $this->regexPatternForIs($wildcards, $caseSensitive)->matches($value);
	}
public function is($value, $wildcards = true, $caseSensitive = true)
	{
		if($this->str == $value)
			return true;

		return $this->regexPatternForIs($wildcards, $caseSensitive)->matches($value);
	}
public function is ( $ value , $ wildcards = true , $ caseSensitive = true ) { if ( $ this -> str == $ value ) return true ; return $ this -> regexPatternForIs ( $ wildcards , $ caseSensitive ) -> matches ( $ value ) ; }
Determine if the string is a pattern matching the given value.

Asterisks (*) in the string are translated into zero-or-more regular expression
wildcards to make it convenient to check if the values starts with the given
pattern such as "library/*", making any string check convenient. This can be
disabled by setting wildcards to false.

By default, the comparison is case-sensitive, but can be made insensitive
by setting $caseSensitive to false.

@param  string  $value
@param  bool    $wildcards
@param  bool    $caseSensitive

@return bool
Determine if the string is a pattern matching the given value .