Write a Python script that iterates through all .md files in a folder and updates all…
- User
Write a Python script that iterates through all
.mdfiles in a folder and updates all instances of a string from#tag1 #tag2to a new format:text--- tags: - tag1 - tag2 ---It needs to able to work with arbitrary strings and an arbitrary amount of strings.
Assistant
Here is a Python script that does that:
python
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.