}
if (value instanceof Slice &&
pattern instanceof Slice &&
(escape == null || escape instanceof Slice)) {
Regex regex = LikeUtils.likeToPattern((Slice) pattern, (Slice) escape);
return LikeUtils.regexMatches(regex, (Slice) value);
}
// if pattern is a constant without % or _ replace with a comparison