I have the string as follows :
SUB8&20.000,-&succes&09/12/18SUB12&100.000,-&failed&07/12/18SUB16&40.000,-&succes&09/12/18
I want to get a string "8&20.000","16&40.000"
between SUB
and ,-&succes
I want to get succes data
how to get the string using java regex ?