Closed goodrone closed 10 months ago
@goodrone could you send a pull request to fix this?
Thank you @hhoffstaette for preparing a pull request https://github.com/iovisor/bcc/pull/4832/files. Unfortunately, I see that it has two issues:
\.
was used, matching a dot, now there is just .
, which matches anything. I think we need to restore the original semantics of the regexes.I hope to be able to contribute an improved fix when I have time.
It would be great if the test suite actually checked for this, otherwise the regexes are essentially in an unknown state.
Python 3.12 improves handling of incorrect escape sequences, see https://docs.python.org/3/whatsnew/3.12.html#other-language-changes
This is a typical scenario in regular expressions. With Python 3.12, there are currently 5 places that use invalid escape sequences:
1.
2.
3.
4.
5.
In all places I think it will be enough to use Python raw strings,
r'...'
.Here is the command I used to look up all of them: