tree = open("start.txt") for line in tree: if re.search("bodies name",line): liste.append(line.rstrip())
i have to append the word behind the key word bodies name. the txt file looks like: bodies name="Testname"
so i should append after bodies name=" until the next ">
is that possible
Thanks for help !!