This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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:
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.