Generation

fix invalid codeThu, 11 May 2023

import re import datetime now = datetime.datetime.now() year = now.year month = now.strftime("%m") regex_string = r"availability in {}/{}: \d{{1,3}}\.\d{{2}}%".format(month, year) regex = re.compile(regex_string) text = regex.search(CurrentItem).group(0)

###### fix invalid code

Questions about programming?Chat with your personal AI assistant