Raj developer wrote:But the regular expression which you gave only takes the integer which is before packets output.
But in my case i have to take both the integers before packets input and packets output in one traverse.
i tried your code but it still gave only integer before packets output
Please note that in my input string the packets input and packets output are in two different lines.
I need the regex which will take the integer even if it is coming in a single line or multiline.