Article View: borland.public.jbuilder.java.api
Article #595Re: StringReplace function
From: Mark Cogan
Date: Thu, 08 May 2003 15:47
Date: Thu, 08 May 2003 15:47
34 lines
2188 bytes
2188 bytes
So, how do I add that kind of funcationality into my current version? Can this be done without having to upgrage my Java to 1.4? I ask this because installing Java 1.4 may not be an option in my deployment environment. Outside of that, what is the easiest way to upgrade the JDK of JBuilder so that it will run Java 1.4? - Mark Cogan "John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message news:MPG.18e87115f6dbabd198beee@newsgroups.borland.com... > On Mon, 24 Mar 2003 14:02:24 +0800, RaynorPao wrote: > > > Is there an API like "StringReplace" in Java? > > See the replaceAll() and replaceFirst() methods in the String class. > These work with regular expressions, so they are quite a bit more > powerful than the method you describe. > > However, these methods were introduced in Java 1.4. Previous Java > versions (and 1.4 as well) have a replace() method that will replace > each occurrence of one character with another, but that does not seem > to be what you need. > > -- > Regards, > > John McGrath [TeamB] > > --------------------------------------------------- > Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<3eba7c39$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e7e9b90$1@newsgroups.borland.com> <MPG.18e87115f6dbabd198beee@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,84da031bf63d5910 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2003-05-08 08:53:15 PST From: "Mark Cogan" <mcogan@isystemsolutions.com> Newsgroups: borland.public.jbuilder.java.api References: <3e7e9b90$1@newsgroups.borland.com> <MPG.18e87115f6dbabd198beee@newsgroups.borland.com> Subject: Re: StringReplace function Date: Thu, 8 May 2003 11:47:47 -0400 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 65.210.20.217 Message-ID: <3eba7c39$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1052408889 65.210.20.217 (8 May 2003 08:48:09 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail