I have a string that I am trying to split into 2 strings using Regex to form a list. Below is the string:
Input: 'TLSD_IBPDEq.'
Output: ['', '']
Expected Output: ['TLSD_IBPD', 'Eq.']
Below is what I have tried but is not working
pattern = r"\S*Eq[\.,]"
l = re.split(pattern,"TLSD_IBPDEq.")
print(l) => ['', '']