Strings?

Discussion in 'Java' started by Novello, Jul 4, 2005.

  1. Novello

    Novello Guest

    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
     
    Novello, Jul 4, 2005
    #1
    1. Advertising

  2. Novello

    Dag Sunde Guest

    "Novello" <> wrote in message
    news:dabhf3$jgm$...
    > 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"
     
    Dag Sunde, Jul 4, 2005
    #2
    1. Advertising

  3. On Mon, 04 Jul 2005 14:54:11 +0000, Dag Sunde wrote:

    > 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

    --
    You can't run away forever,
    But there's nothing wrong with getting a good head start.
    --- Jim Steinman, "Rock and Roll Dreams Come Through"
     
    Stefan Schulz, Jul 4, 2005
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kurt Krueckeberg
    Replies:
    2
    Views:
    731
    =?ISO-8859-1?Q?Ney_Andr=E9_de_Mello_Zunino?=
    Nov 17, 2004
  2. Rick

    Comparing strings from within strings

    Rick, Oct 21, 2003, in forum: C Programming
    Replies:
    3
    Views:
    395
    Irrwahn Grausewitz
    Oct 21, 2003
  3. Klaus Neuner
    Replies:
    7
    Views:
    529
    Klaus Neuner
    Jul 26, 2004
  4. Girish Sahani
    Replies:
    17
    Views:
    587
    Boris Borcic
    Jun 9, 2006
  5. Ben

    Strings, Strings and Damned Strings

    Ben, Jun 22, 2006, in forum: C Programming
    Replies:
    14
    Views:
    813
    Malcolm
    Jun 24, 2006
Loading...

Share This Page