我正在用大纲格式做笔记,看起来像这样:** Microbes are small*** Isn't that something?** I hope I like the teacher** Micro is cool!* Micro topic 1** You can't see them!
*** Isn't that so
我有一个python应用程序,它需要处理用户提交的正则表达式。由于性能考虑,我希望禁止捕获组和回引用。我的想法是使用另一个正则表达式来验证提交的用户regex不包含任何命名或未命名的组捕获,如下所示: if re.match('[^\\\]\)', pattern) is not None: return True
虽然我认为我的想法可能适用于捕获组</