Code example for Pattern

Methods: matcher

0
		if (_pattern == null) throw new IllegalArgumentException("_pattern must not be null");
		pattern = _pattern;
	} 
 
	public boolean isValid(EditText et) {
		return pattern.matcher(et.getText()).matches();
	} 
 
} 
Experience pair programming with AI  Get Codota for Java