with open("/mnt/extra-addons/page_js.md", "r", encoding="utf-8") as f: text = f.read() import re shapes = re.findall(r'assets/images/shapes/[a-zA-Z0-9_-]+\.[a-z]+', text) for s in set(shapes): print("Shape:", s) categories = re.findall(r'assets/images/home/category/[a-zA-Z0-9_-]+\.[a-z]+', text) for c in set(categories): print("Category Image:", c)