I am trying to print the text in the ""
s="I love playing "badminton", it is a great sport."
s1 = re.search('playing (\w+)', s).groups()[0]
print (s1)
The above code perfectly working if the input is "I love playing badminton, it is a great sport." in this format. I am trying to print the text whatever in "". I am sure this is pretty simple, Because of the initial stage in learning python don't know where exactly I am going. Any help would be appreciated. Thank you