Open pabutusa opened 2 weeks ago
I believe it would work to just preface the string with an 'r' to denote it as a raw string.
pattern = re.compile(r"<(.*?):(\d*).*?>([^<]+)")
👋🏻 I made a PR (which will probably not be merged- it looks like this project is loong abandoned) which fixes this problem.
I'll probably continue to work on changes in my fork: https://github.com/tomswartz07/pyqso
Thanks!
I'm really not great at REGEX .... but should the
\d
be a\\d
??According to the google: Back in Python 3.6, using invalid escape sequences in string literals was deprecated (bpo-27364).