JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
May 6, 2018 05:56
try this
var test = 'test-0-0-oitem_id';
var matches = test.match(/([0-9]+)-([0-9]+)/g);