I have below strings for which I am building a regex
SGE_stats{metric_name="mainloop",panel_name="SGE Main Loop duration"} SGE_stats{metric_name="phyevensi_selected_cleared",panel_name="Facade processing"} SGE_stats{metric_name="total",panel_name="Events Processed"} SGE_stats{metric_name="BSW_cleared",panel_name="Proactive Interfaces"}
I built a regex /.*panel_name="([^"]*).*/ which matched below patterns
SGE Main Loop duration
Facade processing
Events Processed
Proactive Interfaces
I want to modify the regex to create two new expressions - One which matches SGE Main Loop duration and other which matches everything except SGE Main Loop duration
Can someone help me with this?
Thanks!!