Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/31/2014 in all areas

  1. ? #Include <Array.au3> Local $str = "aaa:bbb,ccc:{key1:value1},fff:ggg,ddd:{key2:{key3:value3,key4:value4}},eee:{key5:value5}" $res = StringRegExp($str, '(?:[^:,]+:[^:{},]+)|(?<=,)(?:.*?)(?=(?<=\}),|$)', 3) _ArrayDisplay($res)
    1 point
  2. The only way I can think of is the use of a 2nd process to check the existence of the 1st one
    1 point
  3. jdelaney

    Get Link Google

    So you want to do this...already have shown you how
    1 point
  4. The data you want are in a frame, so you must get the frame link first The frame content has a lot of text so the Inet is a bit long, be patient #Include <Array.au3> $txt = BinaryToString(InetRead("http://www.hsbc.com.tr/tr/yatirim/doviz_altin/", 1)) $link = StringRegExpReplace($txt, '(?s).+frame\h*src="([^"]+).+', "$1") msgbox(0,"frame link", $link) $txt = BinaryToString(InetRead($link)) msgbox(0,"", "loaded") ; $res = StringRegExp($txt, '(?s)tableEx1:0:text1(?:5|6).+?>([^<]+)', 3) $res = StringRegExp($txt, '(?s)(?:indirectParitform:tableEx1:text5|tableEx1:0:text1(?:5|6)).+?>([^<]+)', 3) _ArrayDisplay($res) To get it faster you might use an other site
    1 point
×
×
  • Create New...