Article View: borland.public.jbuilder.java.api
Article #643Re: StringReplace function
From: RaynorPao
Date: Mon, 24 Mar 2003 06:54
Date: Mon, 24 Mar 2003 06:54
31 lines
1965 bytes
1965 bytes
Hi John: Thanks for your information very much. I will try it later. Thanks. RaynorPao. "John McGrath [TeamB]" <ng-b@JPMcGrath.net> ���g��l�� 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:
<3e7ea7c5$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!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!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 X-Google-Thread: 1089d0,84da031bf63d5910 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2003-03-23 22:38:57 PST From: "RaynorPao" <RaynorPao.nospam@nospam.pchome.com.tw> Newsgroups: borland.public.jbuilder.java.api References: <3e7e9b90$1@newsgroups.borland.com> <MPG.18e87115f6dbabd198beee@newsgroups.borland.com> Subject: Re: StringReplace function Date: Mon, 24 Mar 2003 14:54:29 +0800 Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 NNTP-Posting-Host: 203.73.124.171 Message-ID: <3e7ea7c5$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1048487877 203.73.124.171 (23 Mar 2003 22:37:57 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail