| Syntax | Example |
|---|---|
| Current | RegExp.make('i')foo` |
| Alternate | RegExp.make/foo/i` |
Right now
var litRegex = /f(o)o/;
var regexWithInterpolation = RegExp.make`(bar) ${myRegex} (baz)`;
var match = regexWithInterpolation.exec('bar foo baz');
// How can I reliably extract "baz" from match?| Approach | Example |
|---|---|
| Current | match[regexWithInterpolation.templateGroups[2]] |
| Alterante | ??? |