Avatar of skij
skij
Flag for Canada

asked on 

JavaScript/REGEX: Inside a double set of parenthesis

Using JavaScript and Regular Expressions, how can I get the content inside a double set of parenthesis?

getInside2p('http://example.com/dir/(S(u53ouszaxo3dis55xhfm0l45))/page.aspx?xyz'); // should return 'u53ouszaxo3dis55xhfm0l45'
getInside2p('xyz((hello))123'); // should return 'hello'
getInside2p('Hello World'); // should return ''

Open in new window

jQueryJavaScriptRegular Expressions

Avatar of undefined
Last Comment
Kim Walker

8/22/2022 - Mon