-3
test_str = "1123456789ExampleDataEntryNumberOne2123456789ExampleDataEntryTwo"

i want to split above string in this form

['1123456789ExampleDataEntryNumberOne', '2123456789ExampleDataEntryTwo']

1 Answers1

0

Can be solve using regular expression

import re
 
test_str = "1123456789ExampleDataEntryNumberOne2123456789ExampleDataEntryTwo"
res = list(filter(None,re.split("([0-9]+[a-zA-Z]+)", test_str)))

print (res)