Vikash Singh I am sorry if my previous comment looks unfriendly.
BrianOn99
11

BrianOn99 Thanks for the reply, feeling much better now :)

So yeah, Rest has ‘\b`, but I couldn’t benchmark against that (I don’t know rest, and I already spent days and nights benchmarking other suggestions that people gave). Do you have some code which I can take references from and try it out.

Anyways, Rest is a different language, and I needed a solution in Python. Hence I built FlashText.

PS: ‘regex with backtracking is slow’ is a better title than ‘regex is slow’. Good thing is, no where in the article I said Regex is slow. I only shared benchmarks :)

PPS: Let’s try Rest with ‘\b’ and see how that performs :)

Like what you read? Give Vikash Singh a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.