i have the following code in place to ensure that the user only enters the letters a through z into the EditText control.
if (Pattern.matches("[^a-z].*", DrawingName.getText().toString())) { //do nothing for now DrawingName.setText("WRONG"); } The problem is it only checks the first character. How can I make it check the entire length of the string? } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---