I've got a dictionary with a structure like this:
{
'www.site.sx/file1.html' : 'TITLE1 101 Project Caspian',
'www.site.sx/file2.html' : 'TITLE2 102 Filter Spencer'
}
I want to be able to have the user just type in title2 102
to match the second entry here so the program can get resources from the associated link. How can I search my dictionary with a wildcard match using the user's inputted value?
Example:
The user types in
title1 101
or perhaps
Title1 101
Now, how can I use this / parse this to get a match in the dictionary?
n.b. - Case sensitivity matters...