On Feb 8, 1:35 pm, "brian.r.willi...@gmail.com"
<brian.r.willi...@gmail.com> wrote:
> On Feb 8, 2:31 pm, "u...@yahoo.com" <u...@yahoo.com> wrote:
>
[quoted text clipped - 22 lines]
> So basically you want to know if there are any alpha characters in the
> string. So, why not just use ([a-zA-Z]) in the regex expression?
I think [a-zA-Z] won't cover i18n characters.
Lew - 09 Feb 2007 00:23 GMT
>>>>> I want to detect whether the java String has any non-numeric and non-
>>>>> whitespace char. For example,
[quoted text clipped - 3 lines]
>>>>> " a 12 3" returns true
>>>>> Can I use [^0-9\\s]? If not, what does it mean?
> I think [a-zA-Z] won't cover i18n characters.
Try "\\p{L}". Read
<http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html>
Study it.
- Lew