Hi Folks,
I'm parsing the below text. But first, I want to remove the letters "CFP" and replace it with a line feed ("\n"). The line feed character would be placed right after the "KGS," for example. I tried to pass a
String object of the text into a StringBuffer and use the StringBuffer's replace method, but that didn't seem to work. I'm hoping that someone could offer some suggestions.
But here's another problem. The text that's being parsed is more than just the above block. I'm trying to break the text into blocks like the one above so it's easier to handle. But for some reason this text has two of the same blocks.
As you can see, the only difference between the two blocks is the "CFP" and the "SHP." I want to grab the first one and ignore the second while removing the "CFP." Although it's optioinal I guess to remove the "CFP." Any suggestions would be appreciated.
[ April 07, 2003: Message edited by: Chris Cairns ]
[ April 07, 2003: Message edited by: Jim Yingst ]