This is my output:
CASE 1:
----------------------------------
Drop Pack: FALSE
Drop Flow: FALSE
----------------------------------
CASE 2:
----------------------------------
Drop Flow: TRUE
Fail Open: FALSE
Fail Close: FALSE
----------------------------------
CASE 3:
----------------------------------
Drop Flow: FALSE
I need a regex to match values as below:
regex 1: to get only the first match as below
Drop Flow: FALSE (UNDER CASE1)
regex 2: to get only the second match as below:
Drop Flow: TRUE (UNDER CASE2)
The regex I have is:
Drop Flows:\s+([A-Z]+)
But this gives all the 3 matches (case 1 , case2 and case3). How can I get individual matches?
Thanks in advance