Article View: borland.public.jbuilder.java.language
Article #7670Re: Help with strings
From: Richard Coyne
Date: Tue, 05 Jun 2001 01:22
Date: Tue, 05 Jun 2001 01:22
28 lines
1486 bytes
1486 bytes
Answer "/""
"Richard Coyne" <richard.coyne@cwcom.net> wrote in message
news:9fgpb3$1p7$1@neptunium.btinternet.com...
> Hi
>
> I'm downloading a URL and store it all in a string. I then need to find
the
> occurance of a substring in the string which id fine.
>
> The problem is that the substring contains double quotation marks ". How
do
> I say the following where the string I want to find is encased in
quotation
> marks ??
>
> code>
>
> String temp; // filed with substring
> int position;
>
>
> position = temp.indexOf(""bob"");
>
> <code
>
>
Technical Details
Message-ID:
<9fhc8k$gvs$1@uranium.btinternet.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!dispose.news.demon.net!demon!btnet-peer0!btnet-feed5!btnet!mendelevium.btinternet.com!not-for-mailReferences:
<9fgpb3$1p7$1@neptunium.btinternet.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,4830f710a236563e X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-06-04 18:23:12 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!dispose.news.demon.net!demon!btnet-peer0!btnet-feed5!btnet!mendelevium.btinternet.com!not-for-mail From: "Richard Coyne" <richard.coyne@cwcom.net> Newsgroups: borland.public.jbuilder.java.language Subject: Re: Help with strings Date: Tue, 5 Jun 2001 02:22:59 +0100 Organization: BT Internet Lines: 30 Message-ID: <9fhc8k$gvs$1@uranium.btinternet.com> References: <9fgpb3$1p7$1@neptunium.btinternet.com> NNTP-Posting-Host: host213-122-13-74.btinternet.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200