Python string matching

Does anyone know which string matching algorithm is implemented in Python?

+3
source share
2 answers

Per sources , this

quick search / count, based on a mixture between the swamp and the horpool, with a few more bells and whistles on top. more background see: http://effbot.org/zone/stringlib.htm

The essay in question is really worth reading!

+9
source

I assume you are talking about CPython. In this case, you can always check the source (see fastsearch.h ).

+1
source

Source: https://habr.com/ru/post/1728781/


All Articles