Is there a way in python to perform partial matching between a word and a generic pattern (a regular expression)?
The aim is to understand how far is a word from a given pattern, e.g. the distance of a word from the pattern of a license plate that is in format AB123CD, so two letters,three digts and two letters again expressed by its regular expression.
Examples: -the word DF345EE matches exactly the pattern.
-the word D345EE would match with one letter more at the beginning
-the word DFC45EE would match if the 'C' was a digit.
I was looking for fuzzy matching but it's usually used for searching a word in another expression.
Thanks!