protected function processLikeOperator($value)
	{
		$value = preg_quote($value);
		$value = substr($value, 0, 1) === '%' ? (substr($value, -1, 1) === '%' ? substr($value, 1, -1) : substr($value, 1) . '$') : (substr($value, -1, 1) === '%' ? '^' . substr($value, 0, -1) : $value);

		return '/' . $value . '/i';
	}
protected function processLikeOperator($value)
	{
		$value = preg_quote($value);
		$value = substr($value, 0, 1) === '%' ? (substr($value, -1, 1) === '%' ? substr($value, 1, -1) : substr($value, 1) . '$') : (substr($value, -1, 1) === '%' ? '^' . substr($value, 0, -1) : $value);

		return '/' . $value . '/i';
	}
protected function processLikeOperator ( $ value ) { $ value = preg_quote ( $ value ) ; $ value = substr ( $ value , 0 , 1 ) === '%' ? ( substr ( $ value , - 1 , 1 ) === '%' ? substr ( $ value , 1 , - 1 ) : substr ( $ value , 1 ) . '$' ) : ( substr ( $ value , - 1 , 1 ) === '%' ? '^' . substr ( $ value , 0 , - 1 ) : $ value ) ; return '/' . $ value . '/i' ; }
Converts SQL LIKE to MongoRegex
@param string value with wildcard - %test, test%, %test%
Converts SQL LIKE to MongoRegex