protected static function findPatterns($patternString) {
		$patternString = self::sanitizePatternString($patternString);

		$patternRegExp = self::getPatternRegExp();

		return (preg_match_all($patternRegExp, $patternString, $patternsMatches)) ? $patternsMatches[1] : [];
	}
protected static function findPatterns($patternString) {
		$patternString = self::sanitizePatternString($patternString);

		$patternRegExp = self::getPatternRegExp();

		return (preg_match_all($patternRegExp, $patternString, $patternsMatches)) ? $patternsMatches[1] : [];
	}
protected static function findPatterns ( $ patternString ) { $ patternString = self :: sanitizePatternString ( $ patternString ) ; $ patternRegExp = self :: getPatternRegExp ( ) ; return ( preg_match_all ( $ patternRegExp , $ patternString , $ patternsMatches ) ) ? $ patternsMatches [ 1 ] : [ ] ; }
Returns array with patterns finded in string.

@param $patternString

@return array
Returns array with patterns finded in string .