If I get your question right you want the pattern only on lines which have RED. If that’s the case then you can use the below
(L\d+).* RED
1
solved Extract value from string with regex [closed]
If I get your question right you want the pattern only on lines which have RED. If that’s the case then you can use the below
(L\d+).* RED
1
solved Extract value from string with regex [closed]