Dear
Java Gurus,
I am wondering whether there is a way to do
string search and replace similar to sed instead of using the conventional method of examining every character line by line in Java. Let’s look at an example of what I am referring to.
The file IncorrectSport.txt is made up of the following strings:
Scoccer=Wimbleton
Tennis=World Cup
I have a need to make string search and replacement to a large number of small text files and is looking for a more efficient approach to getting it done.
There is no issue with writing a simple yet dull laborious text manipulation program in Java.
Thanks in advance,
Jack