src/Core/Db/Expression/Condition.php
private function _likeLevelTwo(ReferencesInterface $value)
	{
		$regex   = '/("[a-zA-Z0-9_-]*)"/';
		$matches = array();
		if(preg_match($regex, $value->getValue(), $matches))
		{
			return $matches[1] . '%"';
		}

		return $value->getValue() . '%';
	}
private function _likeLevelTwo(ReferencesInterface $value)
	{
		$regex   = '/("[a-zA-Z0-9_-]*)"/';
		$matches = array();
		if(preg_match($regex, $value->getValue(), $matches))
		{
			return $matches[1] . '%"';
		}

		return $value->getValue() . '%';
	}
private function _likeLevelTwo ( ReferencesInterface $ value ) { $ regex = '/("[a-zA-Z0-9_-]*)"/' ; $ matches = array ( ) ; if ( preg_match ( $ regex , $ value -> getValue ( ) , $ matches ) ) { return $ matches [ 1 ] . '%"' ; } return $ value -> getValue ( ) . '%' ; }
Validate the value and the percentage sign to a valid value for an expression.
The sign will passed at the end of the value.

Example:    Value: 123 will validated to: 123%.
Value: "a" will validated to: "a%".

@param ReferencesInterface $value The value for the expression.

@return string
Validate the value and the percentage sign to a valid value for an expression . The sign will passed at the end of the value .