I have a long text with companies and IDs. I would like to split the string into a list, where an item ends with an ID. Every ID consists of 5 digits and appears in the text in the same format \(ID\:\d{5}\)
text = "Company A, Inc(ID:12345), some-company, X (ID:12324), Some Special Company Z (ID:34324)"
What I would like to get is the following:
["Company A, Inc (ID:12345)", "some-company, X (ID:12324)", "Some Special Company Z (ID:34324)"]
Is there a way to do it with Regex? Thanks in advance!