<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: извлечение данных из текстового файла]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=7002</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=7002&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: извлечение данных из текстового файла».]]></description>
		<lastBuildDate>Wed, 28 Mar 2012 22:01:26 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: извлечение данных из текстового файла]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=58526#p58526</link>
			<description><![CDATA[<p>Спасибо, буду разбираться.</p>]]></description>
			<author><![CDATA[null@example.com (shveicar)]]></author>
			<pubDate>Wed, 28 Mar 2012 22:01:26 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=58526#p58526</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: извлечение данных из текстового файла]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=58492#p58492</link>
			<description><![CDATA[<div class="codebox"><pre><code>Array:=[], Pattern:=&quot;([\.\/\-\d\w]+).html?&quot;
ReadingFile:=FileOpen(A_ScriptDir &quot;\From.txt&quot;, &quot;r&quot;, &quot;UTF-8&quot;)
WritingFile:=FileOpen(A_ScriptDir &quot;\Into.txt&quot;, &quot;w&quot;, &quot;UTF-8&quot;)
Content:=ReadingFile.Read()
ReadingFile.Close()

StringSplit, FirstSplit, Content, `:
StringSplit, SecondSplit, FirstSplit2, % &quot;`n&quot;A_Space
Loop, % SecondSplit0
   If RegExMatch(SecondSplit%A_Index%, Pattern, Match)
   {
      For Key, Value In Array
         If % Match1=Value
            Array.Remove(Key)
      Array.Insert(Match1)
   }
For Key, Value In Array
   WritingFile.Write(Value &quot;`r`n&quot;)
WritingFile.Close()</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Grey)]]></author>
			<pubDate>Wed, 28 Mar 2012 04:38:32 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=58492#p58492</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: извлечение данных из текстового файла]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=58490#p58490</link>
			<description><![CDATA[<div class="codebox"><pre><code>Array:=[], Pattern:=&quot;([\.\/\-\d\w]+).html?&quot;
Content=
(
Неработающие ссылки:

index_splash.htm    ../silginc.com/index.htm
members/220_2.htm   images/newmenu__hover_01.jpg
members/6145_221.htm   images/newmenu__hover_01.jpg
members/6145_221.htm   6145_2f-6142-01-sm.jpg
members/6145_221.htm   6145_2f-6142-01-lg.jpg

Внешние ссылки:

2257.htm   mailto:info@sexentertain.co
index_splash.htm   http://www.google.com/


Потерянные файлы:

images/235.jpg
)

StringSplit, FirstSplit, Content, `:
StringSplit, SecondSplit, FirstSplit2, % &quot;`n&quot;A_Space
Loop, % SecondSplit0
   If RegExMatch(SecondSplit%A_Index%, Pattern, Match)
   {
      For Key, Value In Array
         If % Match1=Value
            Array.Remove(Key)
      Array.Insert(Match1)
   }
For Key, Value In Array
   Result.=Value &quot;`n&quot;
Loop, % SecondSplit0
   If RegExMatch(SecondSplit%A_Index%, Pattern, Match)
      ResultList.=Match &quot;`n&quot;
MsgBox, 262144, % &quot; &quot;, % &quot;after sampling:`n`n&quot;Result
                     . &quot;`nfrom list:`n`n&quot;ResultList</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Grey)]]></author>
			<pubDate>Wed, 28 Mar 2012 03:10:45 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=58490#p58490</guid>
		</item>
		<item>
			<title><![CDATA[AHK: извлечение данных из текстового файла]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=58355#p58355</link>
			<description><![CDATA[<p>Здравствуйте,&nbsp; <br />Программа adobe dreamweaver - проверяет сайт на наличие ссылок, результат можно увидеть в текстовом файле, вида<br /></p><div class="codebox"><pre><code>Неработающие ссылки:
 
index_splash.htm    ../silginc.com/index.htm
members/220_2.htm   images/newmenu__hover_01.jpg
members/6145_221.htm   images/newmenu__hover_01.jpg
members/6145_221.htm   6145_2f-6142-01-sm.jpg
members/6145_221.htm   6145_2f-6142-01-lg.jpg
 
Внешние ссылки:
 
2257.htm   mailto:info@sexentertain.co
index_splash.htm   http://www.google.com/
 
 
Потерянные файлы:
 
images/235.jpg</code></pre></div><p>каждый из списков,- может быть очень длинным, (привожу краткое содержание) но структура - всегда одинакова. Проблема заключается в дальнейшей обработки этого файла. Хочется&nbsp; ускорить процесс извлечения из файла полезной информации, а именно: фрагмента после надписи (Неработающие ссылки: ) причем только начальных строк до (.htm)или до (html) и всего блока до надписи (Внешние ссылки: )&nbsp; и если возможно, добавить ещё - опцию удаления одинаковых строк, (сохраняется только одно совпадение) в итоговом (отдельном) файле вывода. <br /> AHK может помочь в данном вопросе, или лучше обратиться к vbs? Работаю из под total commander. Надеюсь на помощь.<br />Спасибо.</p>]]></description>
			<author><![CDATA[null@example.com (shveicar)]]></author>
			<pubDate>Sun, 25 Mar 2012 11:34:18 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=58355#p58355</guid>
		</item>
	</channel>
</rss>
