Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

RegEx in condition builder

jaakko_jalo
Tera Contributor

Hello,

In the condition builder we now have the 'matches regex' operator. ...But what are all the regex we CAN use in it?
For example: beginning of line operator '^' does not play nicely with the condition builder in this case as it is assumed it means AND and will add a second condition when saving.

Is there some other character denoting beginning of line for the condition builder? What other exeptions might there be and do they have workarounds?

thanks in advance,
Jaakko Jalo

25 REPLIES 25

Just an idea, try putting the whole regex in single quotes.


even wrapped in single quotes, the ^ causes a new blank condition to be added and the rest of the regex to be dropped from the field.


I've toyed with entering just .* in the matches regex and it doesn't work. I'm concerned that this feature simply doesn't work.


Make it the first thing of the BR then and process if there is a match


Even with just /.*/ on Update there are no test results.



.* should match all Running Processes on those hosts.



regex no test results.PNG