 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
ddw
Joined: 22 Oct 2014 Posts: 10 Country: United States |
|
output substring validation |
|
Hello, I need some assistance with the "output substring" validation function. I'm running 5.1.403 with web console version 5.1.395.
I want to do check the output for "Error" like the example in the wizard,
@REGEX:.*(?![Ee]rror).*)
But that example is not valid because it's missing a parenthesis, and no variation I have tried seems to catch anything. I don't have much experience using look-aheads or negative matches.
So a couple of questions have come to mind.
What flavor of regex is the scheduler using?
Assuming I did have a valid regex, how does the output string validation interact with with the exit code validation? If you have a good exit code and no match in the substring check, what happens? What about bad exit code but a match in the substring check?
|
|
Wed Oct 22, 2014 11:33 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
There is a typo, the first ( is missing. please use @REGEX:.*((?![Ee]rror).)* You can also try @REGEX:^((?!Error).)*$ which will check the string doesn't contain word "Error" in any position (case sensitive). This an alternative version of the first expression. for case insensitive, replace E with [Ee]. If you only need to test for cases of text starting with "Error" then you can use a more efficient @REGEX:^(?!Error).*$
|
|
Tue Oct 28, 2014 11:52 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|