Hello I have trouble finding a string within a file which consists of the following signs and a whitespace or a newline.
I want to find the broken tag
</answ
to replace it later… the xml file lokks like the following:
”

Normally i thought i could find this by
search = i.find('</answ ')
#or newline by:
vorkommen = i.find('</answ \n ')
But it returns both -1…and thats not true…
Thanks a lot for any help!
You could broaden your set of whitespace characters to include tabs as follows.