Code example for Pattern

Methods: matcher

0
        mErrorMessage = errorMessage;
    } 
 
	@Override 
	public boolean isValid(String url) {
		return mPattern.matcher(url).matches();
	} 
 
	@Override 
	public String getMessage() {
		return mContext.getString(mErrorMessage);
	} 
 
}