-2

I'm a Python newbie and I need to extract a substring between two characters how can I do?

Example:

Mail field:

mail:"marco.xx@hotmail.it"

I need to extract the substring: marco.xx@hotmail.it

Many thanks for your help, Marco

Marco.T
  • 1
  • 1

1 Answers1

0

You can use split()

text = 'Mail mail:"marco.xx@hotmail.it"'
email = text.split('"')[1]