I have a text file with code like this
<th>Name</th> <th>Item</th> <th>Item Id</th> </tr> </thead> <tbody><tr class="tableListLeft">
<td><div style="float: left; margin: 0pt 6px 12px 0pt;" class="iconHolder_in-game"><div class="avatarIcon"><a href="/profiles/76561197987317160/"><img alt="Master Blaster" src="http://media.steampowered.com/steamcommunity/public/images/avatars/a1/a168e4b4336b505ee1f4bf460348c40a81467279.jpg"/></a></div></div><span style="float: left; font-size: large; line-height: 20px;"><a href="/profiles/76561197987317160/">Master Blaster</a></span><br/><span class="friendBlock_in-game">In-Game: Team Fortress 2</span></td>
<td style="text-align: center;"><div class="invBoxSmall"><img alt="Unusual Pugilist's Protector" src="http://mirror.pointysoftware.net/tf2items/hats-heavy/pugilist_protector_sized.png" class="item" id="item1"/>
</div></td><td style="text-align: right;"><a href="/item/688749855">688,749,855</a></td>
</tr>
<tr class="tableListAlternateLeft">
<td><div style="float: left; margin: 0pt 6px 12px 0pt;" class="iconHolder_in-game"><div class="avatarIcon"><a href="/profiles/76561198037581884/"><img alt="Azbest Sell items" src="http://media.steampowered.com/steamcommunity/public/images/avatars/36/36b041f262deeba26ca7e197ac1bf578d42f6624.jpg"/></a></div></div><span style="float: left; font-size: large; line-height: 20px;"><a href="/profiles/76561198037581884/">Azbest Sell items</a></span><br/><span class="friendBlock_in-game">In-Game: Team Fortress 2</span></td>
<td style="text-align: center;"><div class="invBoxSmall"><img alt="Unusual Pugilist's Protector" src="http://mirror.pointysoftware.net/tf2items/hats-heavy/pugilist_protector_sized.png" class="item" id="item2"/>
</div></td><td style="text-align: right;"><a href="/item/688583590">688,583,590</a></td>
I need to use a php file to call the text file,
find the lines like this /profiles/76561198037581884/
and just grab the numbers from the end and echo them to another txt file or within the page, either is fine.
This should be super simple. I know how to call the text file.
I have and use simple dom for parsing. I just dont know how to parse text inbetween text.
Thanks! =)