Regularization problems in python

["\n  8", "\n45  8", "\n  10", "\n  2018/10/09 18:49", "\n  36", "\nBITQQ  1", "\nDaphneYAN  1", "\n  1", "\nCEO  2", "\nOdaily  2", "\nBlockchain  2", "\n  3", "\n  3", "\nBBN  3", "\nBlockchain  3", "\n  3"]

time_list = [re.search ("d + [minutes | hours] ago", tick). Group () for tick in time_list]
Why can"t I remove area 45 in this way?

Aug.10,2021

capture group needs to use () , [minutes | hours] not to match minutes or hours, but to match minutes | one of the
characters in small
characters and what do you want to remove, just area 45

?
Menu