docs: public static int getNumberOfMatches(String regex, TextView view, Set<TextView> uniqueTextViews){
  		if(view == null) {
  			return uniqueTextViews.size();
  		}
  		
  		Pattern pattern = null;
  		try{
  			pattern = Pattern.compile(regex);
  		}catch(PatternSyntaxException e){
  			pattern = Pattern.compile(regex, Pattern.LITERAL);
  		}
  		
  		Matcher matcher = pattern.matcher(view.getText().toString());
  		
  		if (matcher.find()){
  			uniqueTextViews.add(view);
  		}
  		
  		if (view.getError() != null){
  			matcher = pattern.matcher(view.getError().toString());
  			if (matcher.find()){
  				uniqueTextViews.add(view);
  			}
  		}	
  		if (view.getText().toString().equals("") && view.getHint() != null){
  			matcher = pattern.matcher(view.getHint().toString());
  			if (matcher.find()){
  				uniqueTextViews.add(view);
  			}
  		}	
  		return uniqueTextViews.size();		
  	}