16 lines
502 B
Python
16 lines
502 B
Python
|
|
import re
|
|
|
|
file_path = "c:/Users/Daivid.alves/Desktop/Repositorios/PlatformSistemas/Sistema_zentulo_analise/Codigo/analysis_src/zentulo_index.js"
|
|
|
|
with open(file_path, 'r', encoding='utf-8', errors='ignore') as f:
|
|
content = f.read()
|
|
|
|
matches = list(re.finditer(r'outlook-filter', content))
|
|
for i, match in enumerate(matches):
|
|
start = max(0, match.start() - 500)
|
|
end = min(len(content), match.end() + 500)
|
|
print(f"--- MATCH {i+1} ---")
|
|
print(content[start:end])
|
|
print("-" * 50)
|