I need to search for the 1st occurence of a string in an html document that contains the following symbols: "Inbox (15)". I wrote the following expression which returns null, though:
var openTickets = document.body.innerHTML.match(/Inbox\s\((d+)\)/);
I only need the number (in the example above, it's 15) for further manipulations which is why I put it between capturing parentheses; I also escaped the "(" symbol (should have I?) as it's also present in the string.
Could anyone please help me get the regEx work? Thanks.