vertx/src/main/java/eu/internetofus/common/vertx/QueryBuilder.java
/**
   * Add a regular expression for a field.
   *
   * @param fieldName name of the field.
   * @param pattern   pattern that the field has to match.
   *
   * @return the factory that is using.
   */
Add a regular expression for a field.
@param fieldName name of the field.
@param pattern   pattern that the field has to match.

@return the factory that is using.
Add a regular expression for a field . @param fieldName name of the field . @param pattern pattern that the field has to match . @return the factory that is using .
public QueryBuilder withRegex(final String fieldName, final String pattern) {
    if (pattern != null) {
      this.query.put(fieldName, new JsonObject().put("$regex", pattern).put("$options", "i"));
    }
    return this;
  }
public QueryBuilder withRegex ( final String fieldName , final String pattern ) { if ( pattern != null ) { this . query . put ( fieldName , new JsonObject ( ) . put ( "$regex" , pattern ) . put ( "$options" , "i" ) ) ; } return this ; }
Add a regular expression for a field.
Add a regular expression for a field .