Skip to main content

I get as ouput for an interface this:

“Interface '1' Status : up (admin: up), Traffic In : 28.37Kb/s (0.00%), Traffic Out : 215.18Kb/s (0.02%)

Interface '1' Status : down (admin: up)”

 

My regex is this ‘^1$’. But I want to match it for the first occurence only so that I get the right output. 

Thank you for your help

Hi @query, have you taken the time to have a look at these two articles?
 

 

Cheers, 


I got the solution. Thanks

 


I got the solution. Thanks

 

Good! Please feel free to share the solution with the community. Then someone else who is experiencing the same problem might be able to use it as well. Thank you very much in advance  


Reply