I have a DF with Credit Card Expiration date in a column (format = mm/yy) I desire to get the Cards that will expire in mm/25 (year = 2025)
I'm trying to use regex to filter the serie but its going wrong
I tested some regex to understand what is being filtered and I got this
df.Exp_Date.filter(regex='.+') --> recognize all dates
df.Exp_Date.filter(regex='.+\/') --> return empty list
df.Exp_Date.filter(regex='.+\/.+') --> return empty list
df.Exp_Date.filter(regex='\w+') --> recognize all dates (ok)
df.Exp_Date.filter(regex='\w+\/') --> return empty list
df.Exp_Date.filter(regex='\w+\/\w+') --> return empty list
My problem probably is on / char. I tested all regex on regexpal and its working there but not on my filter.