var text = ‘tt-text-tt’;
var key = /(?<=tt-).*(?=-tt)/g;
var output = text.match(key);
I can run it in any javascript enviorment but got failure warning with Drafts5.
Looking forward to your help.
Thx.