Search and replace. Write a filter SearchAndReplace.java that takes an REand a string str as command-line arguments, reads a string from standard input, replaces all substrings on standard input that match the RE with str, andsends the results to standard output. First solve the problem using the replaceAll() method in Java’s String library; then solve it without using that method.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.