MenfiosINC / MenfiosSlackBot

A Slack Bot
0 stars 0 forks source link

Optimize search and replace for the case of non regexes #25

Open eSoares opened 5 years ago

eSoares commented 5 years ago

In the case of a search and replace where the search subject is not a regex, it can be optimized for a simple SQL query. This improves greatly the speed since does not need for every element of the query call the python regex evaluator code.

Example:

!s/ test / teste2 /2