I have a string
2045111780&&-3&5&-7
I want a regex to give me groups as:
2045111780
&&-
3
... and then next groups as
3
&
5
... and so on.
I came up with (\d+)(&&?-?)? but that gives me groups as:
2045111780
&&-
... and then next groups as
3
&
... and so on.
Note that I need the delim ( regex: &&?-? )
Thanks.
update1: changed the groups output.