regex.ts:4:17 - error SC1120: the regex 'd' flag (match indices) is not supported yet

  3 | // method values (corpus 8912/8913) compile; regex union arms do not.
  4 | const indices = /cat/d;
    |                 ^~~~~~
  5 | const maybe: RegExp | undefined = /a/;

  hint: supported: literal regexes with the g/i/m/s/u/v/y flags — .test(), .exec()/.match()/.matchAll(), named capture groups (.groups, $<name> templates, \k<name>), .source/.flags, and string replace/replaceAll/split with string replacement templates

regex.ts:8:22 - error SC2020: 'RegExpExecArray.groups' is part of the standard library types but has no scriptc lowering yet

  7 |   const m = re.exec("2024-07");
  8 |   if (m) console.log(m.groups);
    |                      ^~~~~~~~
  9 | }

  hint: '.groups' lowers when the match's regex is STATICALLY known — a regex literal, or a const initialized with one (the group-name table is built at compile time) — and the match comes from exec, match, a for-of over matchAll, or the element parameter of an array-method callback over matchAll rows