reb

一个用Python实现的可读性更好的正则表达式库,旨在提供更清晰、更易维护的正则表达式编写方式。示例展示了从《三国演义》中抽取人名的功能。

https://github.com/workingenius/reb<img width="715" alt="截屏2022-05-22 下午2 54 21" src="https://user-images.githubusercontent.com/5379907/169682865-0629db0a-d533-46d5-8f75-f58479cef5b9.png">以下是一个从三国演义中抽取人名的例子<img width="967" alt="截屏2022-05-22 下午2 57 49" src="https://user-images.githubusercontent.com/5379907/169683059-8f2181fe-e5cf-4f78-abba-e53060f3bc79.png">