Is it possible to use re2 from Python?

前端 未结 4 1246
醉梦人生
醉梦人生 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:21

    You could try to build re2 into its own DLL/so and use ctypes to call functions from that DLL/so. You will probably need to define your own entry points in the DLL/so.

提交回复
热议问题