Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Re: How to check a String contains another String, case-insensitively?

Reply
Thread Tools

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

 
 
Roedy Green
Guest
Posts: n/a
 
      09-12-2008
On Thu, 11 Sep 2008 15:12:16 -0400, www <(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Re: How to check a String contains another String,case-insensitively? tomaszewski.p Java 4 09-12-2008 05:40 PM
Re: How to check a String contains another String, case-insensitively? Knute Johnson Java 0 09-11-2008 07:59 PM
Help: what is the quickest way to find out whether a string contains another string? tuweiwen@gmail.com Java 17 12-06-2005 01:04 PM
check if string contains numeric, and check string length of numeric value ief@specialfruit.be C++ 5 06-30-2005 01:08 PM



Advertisments