Examveda

Which method is used to replace text that matches a regular expression in Java?

A. `replaceFirst()`

B. `findAndReplace()`

C. `replaceAll()`

D. `replace()`

Answer: Option C


This Question Belongs to Java Program >> Regular Expressions In Java

Join The Discussion

Related Questions on Regular Expressions in Java