I was looking around regex and fnmatch threads but couldn't find similar problem.
User enters some string and I need to find it in string that is in col in dataframe. Strings have N char as a wildcard so N can be one of 3 other letters B W C
'BBBB' in 'BBNBAQWE' = True
becouse N transformed into B
'QWER' in 'QNERVFRZ' = True
becouse N transformed into W
strings can be diffrent sizes and from my understanding only one N letter can be morphed in that string to fit user request
What im planning is to add True/False value to new col based on output
df['is_present'] = df['strings'].map(lambda x: get_strings(x, user_val))