String:
text = '<script src="https://mytest.com/abcdefg12-hijklmno34.js"></script>'
I'd like to extract these two alphanumeric values delimited by "-":
regex = '??????'
m = re.split(regex, text)
print(m)
desired output output:
[
'abcdefg12',
'hijklmno34
]
What's the most elegant regex should I be using for this?