Back to project page android-edittext-validator.
The source code is released under:
MIT License
If you think the Android project android-edittext-validator listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.andreabaccega.formedittextvalidator; //w w w . ja v a 2 s.co m import java.util.regex.Pattern; /** * Used for validating the user input using a regexp. * @author Andrea Baccega <me@andreabaccega.com> * */ public class RegexpValidator extends PatternValidator { public RegexpValidator( String message, String _regexp) { super(message, Pattern.compile(_regexp)); } }