*/
function match( $text ) {
return preg_match( $this->getRegex(), $text );
}
/**
*/
function match( $text ) {
return preg_match( $this->getRegex(), $text );
}
/**
*/
function matchStart( $text ) {
return preg_match( $this->getRegexStart(), $text );
*/
function matchStart( $text ) {
return preg_match( $this->getRegexStart(), $text );
$matches = array();
$matchcount = preg_match( $this->getVariableStartToEndRegex(), $text, $matches );
if ( $matchcount == 0 ) {
$matches = array();
$matchcount = preg_match( $this->getVariableStartToEndRegex(), $text, $matches );
if ( $matchcount == 0 ) {
} else {
# multiple matched parts (variable match); some will be empty because of
# synonyms. The variable will be the second non-empty one so remove any
} else {
# multiple matched parts (variable match); some will be empty because of
# synonyms. The variable will be the second non-empty one so remove any