Re: No replaceLast() method in String
I took a look through the bug database and can't find a reason (if there was one). It's likely not implemented because Matcher doesn't implement replaceLast(). Mike On Mar 20 2012, at 09:28 , Alex Kravets wrote:
Hi,
I was looking at String API and noticed that there are methods for string replacement: replace, replaceAll, replaceFirst but no replaceLast. Without getting into detail of how to implement replaceLat (I know how), why was this method not included in String API? I am just curious about this.
Thanks, Alex
So the next question is why Matcher doesn't implement it :) On Mar 20, 2012 2:35 PM, "Mike Duigou" <mike.duigou@oracle.com> wrote:
I took a look through the bug database and can't find a reason (if there was one). It's likely not implemented because Matcher doesn't implement replaceLast().
Mike
On Mar 20 2012, at 09:28 , Alex Kravets wrote:
Hi,
I was looking at String API and noticed that there are methods for string replacement: replace, replaceAll, replaceFirst but no replaceLast. Without getting into detail of how to implement replaceLat (I know how), why was this method not included in String API? I am just curious about this.
Thanks, Alex
participants (2)
-
Alex Kravets
-
Mike Duigou