I have the following string:
21>Please be specific. What do you mean by that?21>Hello are you there623>Simon?
I want to split it into:
21>Please be specific. What do you mean by that?
21>Hello are you there
623>Simon?
Basically the splitter is the numeric value (21 and 623 in this case) followed by the >.
My implementation is that I find the > char, then walk back until I find a non-numeric value.
So basically using sub-string and the like. But it's ugly and I am certain there is a better Regex implementation, but I don't know enough about it.
So can Regex be used here?
\d{1,3}>? Or maybe even\d+>? First one would look for 1 to 3 digits followed by>, and the second would look for one or more digits followed by>.