ServiceNow REGEX grab the following string: between 2 words
to get the value highlighted in yellow:
[code]<h3>OPEN Problem P-2107xxx in environment <i>Non Production</i></h3><br /><small>Problem detected at: 02:39 (UTC) 28.07.2021</small><hr /><b>1 impacted application</b><
regex:
var sDetails=grPrb.details+"";
var testRE = sDetails.match("at:(.*)</small");
gs.print(testRE[1]);
*** Script: 02:39 (UTC) 28.07.2021
Comments
Post a Comment