public void setRegularExpressions(boolean val) {
    boolean changed = val != isRegularExpressions;
    if (changed) {
      isRegularExpressions = val;
      notifyObservers();
    }
  }
public void setRegularExpressions(boolean val)