Name
global.EvtMgmtRegexTest
Description
Checks if the text matches a regex, if matches, the script prints the matching groups. Run in background scripts var t = new global.EvtMgmtRegexTest(); var regex = fill regex here ; var text = fill text here ; t.test(regex, text);
Script
var EvtMgmtRegexTest = Class.create();
EvtMgmtRegexTest.prototype = {
initialize: function() {
},
//Checks if the text matches a regex, if matches, the script prints the matching groups.
test: function(regex, text) {
var erm = new SNC.EventRuleManager();
var res = erm.testRegex(regex, text);
gs.print(res);
return res;
},
type: 'EvtMgmtRegexTest'
};
Sys ID
fc8461b5eb311110727e7ce0b85228f4