I extracted a string and i used regex to return a number, but it returns each number separated by a comma. I want to use regex, so I am confused, please help.
var getPages = "Pages (226)";
var getPagesNew = getPages.match(/\d/g);
This code returns 2,2,6
I need the number without commas, how do I do that? I tried using replace to remove the commas and replace them with nothing but that gave me some error.