* Creates an expression checking this field matches given regular expression
* @param pattern against which text is checked
* @return a {@link MatchesRegexpExpression}
*/
public QueryExpression matches(Pattern pattern) {
return new MatchesRegexpExpression(source, getFieldPath(), pattern);
}