Directory Opus 13.14 introduced a change to RegEx
.
This cause my evaluator group to stop working. I could fix it by changing the regex pattern to match the full string - as expected.
However, just changing RegEx
to RegExS
does not work. Shouldn't it? I think this is a bug.
Here's my group scheme code:
// sample file name: IMG_20250323_131110.jpg
group = mid(value, 4, 8);
if (ispunct(group) or isspace(group))
return "";
// works in 13.14 (added ".*" at end of pattern)
return RegEx(value, "(?:IMG_|VID_)(\d{4})(\d{2})(\d{2}).*", "\1-\2-\3");
// does not work in 13.14
return RegExS(value, "(?:IMG_|VID_)(\d{4})(\d{2})(\d{2})", "\1-\2-\3");