Code: Select all
dups := []
Pos=1
try While Pos:= RegExMatch(bata, pattern,m,Pos+StrLen(m))
{
cou:= a_index `t
for i, v in dups {
if (v = m)
continue, 2
}
extlinks .= m "`n"
dups.push(m)
eztlinks:= Rtrim(extlinks)
eztlinks:= StrReplace(eztlinks, ",")
FileAppend, %cou%`,%eztlinks%,%A_Desktop%\gsresults2021.csv
}
Thoughts? How can I return just the first link for search result of each position. (instead of 4 links being returned for each)