I have below html content, I want extract the Id only like 31673 31672 3166 316 using regular expression.
<a href="/CaseMgrTesting/Pat/Summary/31673">31673</a>
<a href="/CaseMgrTesting/Pat/Summary/31672">31672</a>
<a href="/CaseMgrTesting/Pat/Summary/3166">3166</a>
<a href="/CaseMgrTesting/Pat/Summary/316">316</a>
I create regular expression like below, unfortunately it only return 31673 31672. I also want remove hard code like href="/CaseMgrTesting/Pat/Summary/ and \d\d\d\d\d ,Anybody can give me correct regular expression will be greate appreciate.
(?<=<a\shref="/CaseMgrTesting/Pat/Summary/\d\d\d\d\d">).*(?=</a>)