Thanks but I am not familiar with this language.
I think Autohotkey would be more appropriate for me as it has simple structure (what are the $i = 0; $i -lt $items.Count; $i++ they look like Aramaic to me

)
Can you tell me the commands/structure in AHK to do this:
search for a regex1, extract regex2 from regex1 (ie append to a new file), and continuously loop until there is no other regex1 found
Also, how do I specify an exact string in regex? I want to specify the string <dsf:tsdfgd trsdfge="urn:x-ssdfgs-dfg-com:isdfgc/tg4r3e-i4d" id="OsdfgsdfD">
and I don't want to escape every single symbol etc.
Is there a way to search for an exact string literally?