Re: How to check a String contains another String, case-insensitively?

Discussion in 'Java' started by Roedy Green, Sep 12, 2008.

  1. Roedy Green

    Roedy Green Guest

    On Thu, 11 Sep 2008 15:12:16 -0400, www <> wrote, quoted
    or indirectly quoted someone who said :

    >I know String method contains("YES") will check if this String contains
    >"YES", but it will not find "yes", or "yEs". I want to use a method to
    >return true if it contains " YES ", " yEs ", " yes " etc.


    see http://mindprod.com/jgloss/string.html#SEARCHING
    --

    Roedy Green Canadian Mind Products
    The Java Glossary
    http://mindprod.com
    Roedy Green, Sep 12, 2008
    #1
    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. Replies:
    5
    Views:
    929
    X-Centric
    Jun 30, 2005
  2. tomaszewski.p
    Replies:
    4
    Views:
    777
    Tom Anderson
    Sep 12, 2008
  3. Knute Johnson
    Replies:
    0
    Views:
    411
    Knute Johnson
    Sep 11, 2008
  4. John Deuf

    Sorting case insensitively

    John Deuf, Oct 27, 2003, in forum: Perl Misc
    Replies:
    4
    Views:
    86
    Master Web Surfer
    Oct 31, 2003
  5. PerlFAQ Server
    Replies:
    0
    Views:
    303
    PerlFAQ Server
    Feb 8, 2011
Loading...

Share This Page