Regular Expression String sentence = “The president said, “Work, work, and work,” are the keys to success. “; String result = sentence. replaceAll(“work”, “hard work”); System.20 Ağu 2020
How do you make a replaceAll case-insensitive in Java?
Regular Expression String sentence = “The president said, “Work, work, and work,” are the keys to success. “; String result = sentence. replaceAll(“work”, “hard work”); System.20 Ağu 2020