Looking to extract a specific Number enclosed within square brackets, like so:
Identify the 0
within
actionFields[actionFields][0][data[Report][action]]
I've been working on this but keep getting a null result.
var match, matchRegEx = /^\(?\[(\d)\]\)$/;
nameAttr = "actionFields[actionFields][0][data[Report][action]]",
match = matchRegEx.exec(nameAttr);