Stack Exchange
log in
users (5)
rooms (11)
faq
debao84
general
recent
conversations
JavaScript
Topic: Anything JavaScript, ECMAScript including Node, React, ...
3
debao84
May 6, 2018 05:56
try this
var test = 'test-0-0-oitem_id';
var matches = test.match(/([0-9]+)-([0-9]+)/g);