Jump to content

Stripping Characters from Strings


4b0082
 Share

Recommended Posts

Hum it's a little maths problem  :)

#include <Array.au3>

 $sData = BinaryToString(InetRead("http://steamcommunity.com/market/"))
 $aItems = StringRegExp($sData, '(?sU)row_link.*href="(.*)".*&#36;(\d+\.\d{2}).*item_name".*>(.*)<\/span>.*<\/a>', 3)
 ;_ArrayDisplay($aItems)

Local $res[UBound($aItems)/3][3]
For $i = 0 to UBound($aItems)-1
    $n = Mod($i, 3)
    $res[($i-$n-1)/3+1][$n] = $aItems[$i]
Next
 _ArrayDisplay($res)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...