Is it possible to use re2 from Python?

前端 未结 4 1245
醉梦人生
醉梦人生 2021-02-07 01:24

i just discovered http://code.google.com/p/re2, a promising library that uses a long-neglected way (Thompson NFA) to implement a regular expression engine that can be orders of

4条回答
  •  孤独总比滥情好
    2021-02-07 02:13

    David Reiss has put together a Python wrapper for re2. It doesn't have all of the functionality of Python's re module, but it's a start. It's available here: http://github.com/facebook/pyre2.

提交回复
热议问题