ragunathjawahar / android-saripaar

UI form validation library for Android
Apache License 2.0
3.22k stars 460 forks source link

Check `EditText` should not contains specific piece of text in it. #196

Open hasnain-ahmad opened 7 years ago

hasnain-ahmad commented 7 years ago

I have an EditText, i want to assure that it does not contain the text of "Please Select". If the text presents in the EditText than onValidationFailed should be called a toast of error will be shown on EditText. Which annotation of the library will be used for the above scenario?

fabiomor commented 6 years ago

I think you can use Pattern and provide the proper regexp