I have a line of code using regex to strip text between square brackets (inclusive). It works well. However, it keeps reporting
SyntaxWarning: invalid escape sequence '['
parsableText = re.sub("[[].*?[]]", "", parsableText)
Is there a way to change the regex so it will work and compiler will not complain? or a different way to do it?