Liste des Groupes | Revenir à cl python |
I'm trying to discard lines that include the string "\sout{" (which is TeX, forString literals use backslash is an escape character, so it needs to be escaped, or you need to use a "raw" string.
those who are curious. I have tried:
if not re.search("\sout{", line):
if not re.search("\sout\{", line):
if not re.search("\sout{", line):
if not re.search("\sout\{", line):
But the lines with that string keep coming through. What is the right syntax to
properly escape the backslash and the left curly bracket?
Les messages affichés proviennent d'usenet.