js-levenshtein
js-levenshtein copied to clipboard
How to use it to search for a substring(or nearly it) in a large blob of text?
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.