js-levenshtein icon indicating copy to clipboard operation
js-levenshtein copied to clipboard

How to use it to search for a substring(or nearly it) in a large blob of text?

Open ishandutta2007 opened this issue 1 year ago • 0 comments

For example in the following text:

Easier to reason about useMemo can make your code easier to reason about by making it clear which values are being calculated and when. Follow-up questions What are some other ways to improve the performance of React applications?

I want to locate and split by sting like : Follow-up questions, Follow-up questions:, Follow-up question, Followup questions , Follow-up questions=, follow-up questions:= . I know searching by regex is an option by I am looking to explore levenshtein to keep room for an unexpected letter.

ishandutta2007 avatar Jun 19 '23 17:06 ishandutta2007