CLI and Evaluator example

If I copy/paste Evaluator example from this page, I have error.

What's wrong ?

Probably caused by

This will work:

str = "Text in a string";
Output(Match(str, "^text.*string$", "r"));
Output(Match(str, "^text.*str$", "r"));
Output(" ");

name = "Job-19230-20230605-XE.xlsx";
jobdate = RegEx(name, "Job-(.+)-(.+)-(..).xlsx", "\2");
Output(jobdate);
jobdate = Left(jobdate, 4) + "-" + Mid(jobdate, 4, 2) + "-" + Right(jobdate, 2);
Output(jobdate);
Output(jobdate As date);
Output(" ");

return "Hello World";

Yes good catch, it was broken by that change - but it shouldn't be. Fixed in the next update.

2 Likes