check 3 delimiters

Hi allcan i make a condition if 3 delimiters exists then insert a new line for example if the program reads from a file a paragraph and if it has )),i.e. 2 brackets and comma then insert a new linehow can this be done?
[260 byte] By [TheNewLeadera] at [2007-11-27 9:32:01]
# 1

Do you mean insert a blank line? if so you could do

inputString.replaceAll( "))," , ")),\n");

But depending on your needs there might be a better way.

P.s. you could also deal with each line as a String and use endsWith.

inputString.endsWith(")),");

Message was edited by:

_helloWorld_

_helloWorld_a at 2007-7-12 22:48:26 > top of Java-index,Java Essentials,Java Programming...
# 2
1.First you read that file 2.From file Take one line by readLine();3.by using StringTokenizer class prepare Tokens for that line 4.in while loop check each Token and say like inputString.replaceAll( "))," , ")),\n");I hope it will be help full to You.
krosurua at 2007-7-12 22:48:26 > top of Java-index,Java Essentials,Java Programming...