SyntaxFix
Write A Post
Hire A Developer
Questions
var myregexp = /\[(\d+)\]\[(\d+)\]/; var match = myregexp.exec(text); if (match != null) { var productId = match[1]; var shopId = match[2]; } else { // no match }