Thanks! that works perfectly.

On Wed, Jan 14, 2009 at 7:27 AM, Al <[email protected]> wrote:

>
> Both A T and Faber's solutions should work fine if you add the check
> for uppercase letters also:
>
>                String foo = "aAsdjshdIUjkshf";
>                System.out.println(foo.matches("[a-zA-Z]+") ? "Yay" : "Nay"
> );
>
> Prints 'yay'.
>
>                String foo = "aAsdjs1234hdIUjkshf";
>                System.out.println(foo.matches("[a-zA-Z]+") ? "Yay" : "Nay"
> );
>
> Prints 'nay'.
>
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to