Strings?

N

Novello

hello,

String myStr;

I've to check if this var is formed by a valid set of chars : A-Z, a-z, 0-9.
If myStr is formed with these charset the method returns true else it
returns false.

The question is, how can I check char range? is it possible?
thank you
 
D

Dag Sunde

Novello said:
hello,

String myStr;

I've to check if this var is formed by a valid set of chars : A-Z, a-z,
0-9.
If myStr is formed with these charset the method returns true else it
returns false.

The question is, how can I check char range? is it possible?
thank you

Google for "Regular expressions" and "Java"
 
S

Stefan Schulz

Google for "Regular expressions" and "Java"

looking at the javadoc for java.lang.String might also help

Also be aware that this is really not the newsgroup for this kind of
question, comp.lang.java.help is what you look for
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top