public boolean matchWithRegEx(String aRegEx){
  if (TextUtils.isEmpty(aRegEx)) {
    return false;
  }
  boolean matched=false;
  if (!TextUtils.isEmpty(mDisplayName)) {
    matched=mDisplayName.matches(aRegEx);
  }
  if (!matched) {
    for (    String email : mEmails) {
      matched|=email.matches(aRegEx);
    }
  }
  return matched;
}

public boolean matchWithRegEx ( String aRegEx ) { if ( TextUtils . isEmpty ( aRegEx ) ) { return false ; } boolean matched = false ; if ( ! TextUtils . isEmpty ( mDisplayName ) ) { matched = mDisplayName . matches ( aRegEx ) ; } if ( ! matched ) { for ( String email : mEmails ) { matched |= email . matches ( aRegEx ) ; } } return matched ; }
test if some fields match with the reg ex .
