JSFiddle - React, Tailwind, and code Playground
by David Nabb
JavaScript
var str = 'this..is-----a test-two-separate-tokens-this--is--just--one--token-another';
var result = str.match(/(?:[^\-]|--)+/g);
alert(result);
by David Nabb
var str = 'this..is-----a test-two-separate-tokens-this--is--just--one--token-another';
var result = str.match(/(?:[^\-]|--)+/g);
alert(result);