I'm trying to get submetrics from logs with thousands of lines. Those lines are not similar so i need to match some values before get submetric.
Some simplified example lines
1, 2, acceptline,x,111, 100, , , 20, 20, end
1, 2, declineline,x,x, 100, 20, , end
1, 2, 3, acceptline,x,x, 1000, , 40, end
I try to get that numeric value which is in third comma separated column after my value match (acceptline).
In my example those values are 100 and 1000 but those can basically be any numeric value
I have succeeded to got that right submetric value with following java regular expression
^.*acceptline.+?((?<submetric>,.+?){3}),.*
But within that regex i got submetric as <, 100> or what ever that numeric value is.
Now i need to improve that regex so those leading <, > is removed before accepted as submetric.