private function _checkProhibitedKeywordsRegex($token) {
		if ($this->_isActive('checkProhibitedKeywordsRegex')) {

			foreach ($this->_prohibitedKeywordsRegex as $pattern) {

				preg_match_all($pattern, $token->text, $matches);
				$matches = $matches[0];
				if (!empty($matches)) {
					foreach ($matches as $key => $value) {
						$msg = $this->_getMessage('PROHIBITED_KEYWORD_REGEX', $value);
						$this->_writeError('checkProhibitedKeywordsRegex', $msg);
					}
				}
			}
		}
	}
private function _checkProhibitedKeywordsRegex($token) {
		if ($this->_isActive('checkProhibitedKeywordsRegex')) {

			foreach ($this->_prohibitedKeywordsRegex as $pattern) {

				preg_match_all($pattern, $token->text, $matches);
				$matches = $matches[0];
				if (!empty($matches)) {
					foreach ($matches as $key => $value) {
						$msg = $this->_getMessage('PROHIBITED_KEYWORD_REGEX', $value);
						$this->_writeError('checkProhibitedKeywordsRegex', $msg);
					}
				}
			}
		}
	}
private function _checkProhibitedKeywordsRegex ( $ token ) { if ( $ this -> _isActive ( 'checkProhibitedKeywordsRegex' ) ) { foreach ( $ this -> _prohibitedKeywordsRegex as $ pattern ) { preg_match_all ( $ pattern , $ token -> text , $ matches ) ; $ matches = $ matches [ 0 ] ; if ( ! empty ( $ matches ) ) { foreach ( $ matches as $ key => $ value ) { $ msg = $ this -> _getMessage ( 'PROHIBITED_KEYWORD_REGEX' , $ value ) ; $ this -> _writeError ( 'checkProhibitedKeywordsRegex' , $ msg ) ; } } } } }
Check for the presence of a text corresponding to a prohibited regexp.

@param TokenInfo $token
the token to check
Check for the presence of a text corresponding to a prohibited regexp .