I added an Output Monitor to an Execute Program Action. The Search String is (?s)Script is starting\W+\w. I checked the Regular Expression check box and set the behaviour to 'Fail action if found.' The action did not fail under the expected conditions. Next I decided to log the output from the Execute Program Action to a variable I created. I then inserted an If..Then Action and created an expression so that the Left-Hand Value was set to the variable I created which would contain the output from the Execute Program Action, Operator is set to Matches Regular Expression, and Right-Hand Value is set to the exact same regular expression as above, (?s)Script is starting\W+\w. The If..Then action does match the expected conditions. So the Output Monitor does not work but the If..Then does work.
It seems that either regular expressions in Output Montiors behave differently than they do elsewhere. Or, the output the Out Monitor receives is not the same as is being saved in the variable I created.
This is the Execute Program Action output I am trying to match:
Script is starting...
Could not connect to