'=======================================================================================
'함수 이름 : ClosesaverEmoteFile
'기능 : 원격 사진을 교체하고 저장하십시오
'Arguments: ConStr----------------------------------------------------------------------------------------------------------------------
'매개 변수 : Savetf ------ 파일을 저장할지 여부, False는 저장되지 않음, True Save
'매개 변수 : tisturl -------- 현재 웹 주소
'=======================================================================================
functionReplacesaverEmoteFile (Constr, Strinstalldir, StrChannelDir, Savetf, Tisturl)
ifconst = "$ false $"orconstal = ""orstrchannelDir = "" ". 그런 다음
replacesaveremotefile = constr
종료 기능
endif
dimtempstr, tempstr2, tempstr3, re, matches, match, temppi, temparray, temparray2
setre = newRegexp
re.ignorecase = true
re.global = true
re.pattern = "<img.+? [^/>]>"
setMatches = re.Execute (constrs)
foreachMatchInMatches
iftempstr <> ""그런 다음
tempstr = tempstr & "$ array $"& match.value
또 다른
tempstr = match.value
endif
다음
iftempstr <> ""그런 다음
temparray = split (tempstr, "$ array $")
tempstr = ""
fortempi = 0toubound (temparray)
re.pattern = "src/s*=/s*.+?/.
setMatches = re.Execute (temparray (tempi))
foreachMatchInMatches
iftempstr <> ""그런 다음
tempstr = tempstr & "$ array $"& match.value
또 다른
tempstr = match.value
endif
다음
다음
endif
iftempstr <> ""그런 다음