Python
Appearance
import re with open("in.txt", "r") as f: lines = f.readlines() pattern = r'question:\s*"([^"]+)"' for line in lines: matchs = re.findall(pattern, line) with open("out.txt", "w") as out: for match in matchs: out.write(match + "\n")
0f947a1
87b3008