Hi Nickodemus,

i created a small script as a template for you. Be aware of line-breaks caused 
by yahoo.

Best regards Detlef

Here you are:

local l_wget_path = "C:/Program Files/wget/wget.exe"
local l_wget_log  = scriptfolder ++ ?"\wget.log"
local l_webp_file = scriptfolder ++ ?"\webp_file.web"
local l_webp_url  = "http://www.radsoftware.com.au/regexdesigner/";

;delete temporary files
file.deletenorecycle(l_webp_file)
file.deletenorecycle(l_wget_log)

;download webpage
local l_wget_params = "--debug"     ++ " -a " ++ l_wget_log
local l_wget_params = l_wget_params ++ " -O " ++ l_webp_file
local l_wget_params = l_wget_params ++ " -t 2"
local l_wget_params = l_wget_params ++ " " ++ l_webp_url
local l_exitcode    = ""

l_exitcode = file.runwait(99999999,l_wget_path,l_wget_params,"","hide")   

win.debugshow("WGET-Exitcode",l_exitcode,l_wget_path,l_wget_params)

if(l_exitcode)do
   quit
endif

;read web-page-content from file
local l_webp_cont    = file.readall(l_webp_file)

;extract information with regex-plugin
local l_format      = "$1$2$3$4$5$6$7$8$9"
local l_soptions    = "m"
local l_StrtOffs    = ""
local l_MaxMatch    = ""
local l_word        = ""
local l_regexpat    = ?"Rad\.RegexDesigner\.Setup\.([\d\.]+)"
local regex_count   = 0
local regex_status  = ""
local l_result      = 
regex.pcreMatchall(l_regexpat,l_webp_cont,l_format,l_soptions,l_MaxMatch,"",l_StrtOffs)

win.debugshow("regex_count="++regex_count)
win.debugshow("regex_status"++regex_status)
win.debugshow("Result='"++l_result++"'")

Reply via email to