Based on the following String:
fecha = '4 de julio de 1995 (edad 23\xa0años), Siracusa, Nueva York, Estados Unidos'
With a Split I separate the words:
split = fecha.split(',')
split[1], split[2], split[3]
Output: (' Siracusa', ' Nueva York', ' Estados Unidos')
How can I eliminate what is between parentheses in this string and only have the date.
split[0]
Output: '4 de julio de 1995 (edad 23\xa0años)'
Final Result: July 4, 1995
It occurs to me that you can do one
split
more:would result in: