🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7668

Help with strings

#7668
From: Richard Coyne
Date: Mon, 04 Jun 2001 20:00
18 lines
1219 bytes
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: <9fgpb3$1p7$1@neptunium.btinternet.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!grolier!btnet-peer0!btnet-feed5!btnet!mendelevium.btinternet.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,4830f710a236563e,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-04 13:01:52 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!grolier!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: Help with strings
Date: Mon, 4 Jun 2001 21:00:01 +0100
Organization: BT Internet
Lines: 20
Message-ID: <9fgpb3$1p7$1@neptunium.btinternet.com>
NNTP-Posting-Host: host213-122-192-238.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