Generation

regexFri, 30 Dec 2022

get the alertname from following string. The alertname is between alertname= and ,: alertname=MachineData-Layer0-TooManyPackages,

(alertname=)(\w+)(,)(\s*)

Questions about programming?Chat with your personal AI assistant