fred rosenberger wrote:I am not a regex expert, but you may need a '+' on your pattern to say "one or more"
Not for
find(). You would for
matches(), if you need to
test that the whole String consists of characters
[a-zA-Z]. To ascertain the presence of at least one alpha character using
matches(), this will suffice.