I am trying to match a target word in a text string, allowing for fuzziness
import regex
text = 'hello this is a test'
pattern = '(test){e<=2}'
however, regex.search(pattern, text, regex.IGNORECASE)
returns 'a test', how can I made it match only the exact pattern (when possible) and not start matching earlier using the allowed fuzziness ?