I need help with replacing segments of a string in Java.
I have tried both the String method 'replace' and StringTokenizer. As the segments of my strings is of unknown length I guess StringTokenizer is out of question. I also need to go through several strings (with many similar segments to replace in each string). I have assumed there is a command for finding substrings something like "begin with..., and end with..." but have not found any.
As I am new to programming, this case might be simple for all but me...
Thanks in advance!