users
[Top] [All Lists]

RE: [cinjug-users] String problem???

To: 'Ray' <andern@xxxxxxxxxxxx>, "'users@xxxxxxxxxx'" <users@xxxxxxxxxx>
Subject: RE: [cinjug-users] String problem???
From: "Weaver, Scott" <Sweaver@xxxxxxxxx>
Date: Wed, 11 Jun 2003 09:21:11 -0400
Delivered-to: mailing list users@cinjug.org
Mailing-list: contact users-help@cinjug.org; run by ezmlm

\" is an escape sequence which, to a java, really looks like ".  I think to achieve the desired affect you need to escape the escape sequence which would end up being something like this, \\\", which should actually render as \", I think.


*===================================*
* Scott T Weaver                    *
* Jakarta Jetspeed Portal Project   *
* weaver@xxxxxxxxxx                 *
*===================================*
 

-----Original Message-----
From: Ray [mailto:andern@xxxxxxxxxxxx]
Sent: Wednesday, June 11, 2003 9:09 AM
To: users@xxxxxxxxxx
Subject: [cinjug-users] String problem???

Hi folks,
 
I'm attempting to change all occurrences of double quotes ( " ) in a string to slash double quotes ( \" ). What's the best way to do this? string.replace(' " ' , ' \" ') does not work. Any ideas?

 
Ray
-------------------

<Prev in Thread] Current Thread [Next in Thread>