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.
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.