0

How can I split a string by different symbols including dots?

currency_title = "USD.RUB.EUR"
currency_arr = re.split('&|,|/|and|.',currency_title)

I get many empty substrings why? Please notice that I want to use regex re, not split.

Markus
  • 3,562
  • 12
  • 48
  • 85

0 Answers0