| Write python code to Create a file content filter with pattern matching using pathlib. accepts file path and filter patterns; validates path; filters file content; sanitizes patterns; returns filtered content. Structure the project as: src/, utils/content_filter.py, validators/path_validator.py. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready. |