| To: | "Ray" <andern@xxxxxxxxxxxx>, <users@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [cinjug-users] String problem??? |
| From: | Shane Kirk <shane@xxxxxxxxxxxxxx> |
| Date: | Wed, 11 Jun 2003 09:17:52 -0400 |
| Delivered-to: | mailing list users@cinjug.org |
| In-reply-to: | <003e01c3301a$a7839fd0$9865fea9@CodeMasters> |
| Mailing-list: | contact users-help@cinjug.org; run by ezmlm |
| References: | <003e01c3301a$a7839fd0$9865fea9@CodeMasters> |
| User-agent: | KMail/1.4.3 |
That's because " and \" mean the same exact thing the way you're using it. Try
doing this:
string.replaceAll("\"", "\\\"");
I suspect that will do exactly what you need it to.
On Wednesday 11 June 2003 09:09 am, Ray wrote:
> 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> |
|---|---|---|
| ||
| Previous by Date: | String problem???, Ray |
|---|---|
| Next by Date: | RE: [cinjug-users] String problem???, Weaver, Scott |
| Previous by Thread: | String problem???, Ray |
| Next by Thread: | Re: [cinjug-users] String problem???, Chris McMahan |
| Indexes: | [Date] [Thread] [Top] [All Lists] |