R
ranumehta79
Hi,
I want to replace mulitple occurances of a string one after the another
with a single string
for eg .
input : a hello b world c java abcabcabc
output: a hello b world c java def
I mean multiple occurances of pattern 'abc' with a single string 'def'.
how can do this with JAVA regular expressions ?
I tried replaceAll method in string class, but I dont know how to
format regular expression.
thanks
Ranu
I want to replace mulitple occurances of a string one after the another
with a single string
for eg .
input : a hello b world c java abcabcabc
output: a hello b world c java def
I mean multiple occurances of pattern 'abc' with a single string 'def'.
how can do this with JAVA regular expressions ?
I tried replaceAll method in string class, but I dont know how to
format regular expression.
thanks
Ranu