How do I find if string has at least one character using regex?

java, regex

Solution

The regular expression you want is `[a-zA-Z]`, but you need to use the `find()` method.

This page will let you test regular expressions against input.

http://www.fileformat.info/tool/regex.htm

Problem

Examples: - "1 name": Should say it has characters - "10,000": OK - "na123me": Should say it has characters - "na 123, 000": Should say it has characters

Original source