public BooleanExpression matches(String regex) {
        return matches(ConstantImpl.create(regex));
    }
Create a {@code this.matches(regex)} expression

<p>Return true if this String matches the given regular expression</p>

<p>Some implementations such as Querydsl JPA will try to convert a regex expression into like
form and will throw an Exception when this fails</p>

@param regex regular expression
@return this.matches(regex)
@see java.lang.String#matches(String)
querydsl-core/src/main/java/com/querydsl/core/types/dsl/StringExpression.java