Software, Music and Thoughts
var str = "hi (1111) bye"; var re = /\((.*?)\)/; var matches = str.match(re); if (matches) { var submatch = matches[1]; }