a regex question in java.
I’m scraping Id numbers from a element href attribute. I have a bunch on links like these in a string:
<a href="http://www.someplacelol.com/pdf/14669/Whatever/Doesntmatter">Whatever</a>
After the ‘pdf’ and slash comes an Id number, which I’m interested in.
So I must get all Id’s from multiple occurences of this kind of url in the string. What would be the best regex for it?
Thanks in advance.
If you know that the url will be exactly this, your regex can just be: