| Write java code to Build a file content replacement utility with pattern matching using N/A. accepts file path, search pattern, and replacement; validates path; replaces matching content; sanitizes patterns; saves modified file. Structure the project as: src/main/java/utils/, validators/. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready. |