Just getting numbers from a string
I used screen scraping to get html from a number of our web sites that we are converting to a CMS. I was asked to grab one block of code that includes links to individuals using a numeric ID as their primary key. This is where my 'expertise' ends...lol. Lets say you have a list block like:
<ul>
<li><a href="details.cfm?id=20>Steve String</a></li>
<li><a href="details.cfm?id=50>Mary String</a></li>
<li><a href="details.cfm?id=120>Jerry String</a></li>
</ul>
I want to strip out the ID's to only produce: 20 50 120 or 20,50,120 (would be optimal). How I can use probably regex to remove all non numeric numbers from a block of string?
