I'm trying to capture all instances of text between < and > symbols, as well as the beginning word.
test <1> <example> <dynamic
I tried the following expression:
(\w+) (?:<(.*?)>)+
but it doesn't work. There can be 1 or more groups that I have to capture. What I expect this to capture is (groups): * test * 1 * example * dynamic
but all I get is: * test * 1
Can anyone help me figure out how to do this properly? Thanks a lot.