Substitute a part of string (ignoring special characters)
Substitute a part of string (ignoring special characters) Question: Suppose that I have a list of strings, and I want to substitute different parts of it by re.sub. My problem is that sometimes this substitution contains special characters inside so this function can’t properly match the structure. One example: import re txt = ‘May enbd …