Come se ho una stringa come str1 = "IWantToMasterPython"
Come estrarre una stringa tra 2 altre stringhe in python?
Se voglio estrarre "Py"
dalla stringa di cui sopra. Scrivo:
extractedString = foo("Master","thon")
voglio fare tutto questo perché sto cercando testi da una pagina HTML per l'estrazione. I testi sono scritti come <div class = "lyricbox"> ....lyrics goes here....</div>
.
Eventuali suggerimenti su come implementare.
Nicely risposto. Esattamente quello che volevo sapere. Thanx –