I want to find two similar strings with at least one error. I want to use pythons built in re library.
example
import re
re.match(r"anoother","another") #this is None indeed
it should return True and find if it has one or two typos.
i have looked for a long re documentations but i have no idea how to use this knowledge when there is one type
a="this is the anoother line\n"
b="this is the another line\n"
c=re.search(r"{}".format(a),b) #how to write regex code here?
#c =True #it should return True
I expect return True
re.any_regex_func(r"anyregex this is anoother line anyregex","this is another line")
if it has more than one type return false