Given the following strings
7;#User One
7;#User Two;#9;#User Two
7;#User Two;#9;#User Two;#123;#User Three
I would like to build a regular expression that "breaks" these apart so that each string returns the following matches:
["7;#User One"]
["7;#User Two", "9;#User Two"]
["7;#User Two", "9;#User Two", "123;#User Three"]
I tried a few methods but can't seem to get it to work properly. Can anyone help?