Hi - very new to regexes - so apologies
I'm trying to catch data which can be optional after the first entry
i.e.
Test cases
<one><end>
<one> | <two><end>
<one> | <two> | <three><end>
gives answer groups as follows
one
one two
one two three
and so on.
There is a finite number of optionals but the number is unknown.
I tried
<([^>]*)>( | <([^>]*)>)*?<end>
but I think I'm getting caught out by using the incorrect identifier to get the contents between the <> AND also being too 'greedy':-(
Could someone please give me advice on the best way to approach this ?
Cheers