<?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>https://forum.script-coding.com/viewtopic.php?id=11500</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11500&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: вывод строки при совпадении со смежными».]]></description>
		<lastBuildDate>Sat, 16 Apr 2016 15:02:46 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: вывод строки при совпадении со смежными]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=102634#p102634</link>
			<description><![CDATA[<div class="codebox"><pre><code>var = 
(
&lt;tr class=&quot;displayed&quot;&gt;
&lt;td&gt;&lt;span class=&quot;user-icon&quot;&gt;&lt;/span&gt;Иван&lt;/td&gt;
&lt;td&gt;60 лет&lt;/td&gt;
&lt;td&gt;Москва&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;displayed&quot;&gt;
&lt;td&gt;&lt;span class=&quot;user-icon&quot;&gt;&lt;/span&gt;Александр&lt;/td&gt;
&lt;td&gt;30 лет&lt;/td&gt;
&lt;td&gt;Киев&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;displayed&quot;&gt;
&lt;td&gt;&lt;span class=&quot;user-icon&quot;&gt;&lt;/span&gt;Анна&lt;/td&gt;
&lt;td&gt;30 лет&lt;/td&gt;
&lt;td&gt;Москва&lt;/td&gt;
&lt;/tr&gt;
)

result := Object()
Pos := 1, match := &quot;&quot;
While Pos := Regexmatch(var, &quot;s)(?:^|\R)&lt;td&gt;&lt;span class=&quot;&quot;user-icon&quot;&quot;&gt;&lt;/span&gt;(\D*)&lt;/td&gt;(?:[^\r\n]*\R){2}&lt;td&gt;Москва&lt;/td&gt;(?:$|\R)&quot;, match, Pos+StrLen(match))
   result[A_Index] := match1

loop % result.MaxIndex()
{
	Msgbox % result[A_Index]
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (mafckz)]]></author>
			<pubDate>Sat, 16 Apr 2016 15:02:46 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=102634#p102634</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: вывод строки при совпадении со смежными]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=102626#p102626</link>
			<description><![CDATA[<p>Cпасибо, выручили. Еще плохо разбираюсь в этой области, поэтому спрошу еще:<br />можно ли выводить каждого&nbsp; человека по данным результатам в отдельных, последовательно открывающихся окнах (нажал ОК - вывелось следующее имя)?</p>]]></description>
			<author><![CDATA[null@example.com (darthmakr)]]></author>
			<pubDate>Sat, 16 Apr 2016 10:39:03 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=102626#p102626</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: вывод строки при совпадении со смежными]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=102623#p102623</link>
			<description><![CDATA[<p>По образцу кода от Malcev&#039;a (<a href="http://forum.script-coding.com/viewtopic.php?pid=102405#p102405">http://forum.script-coding.com/viewtopi … 05#p102405</a>) :<br /></p><div class="codebox"><pre><code>var = 
(
&lt;tr class=&quot;displayed&quot;&gt;
&lt;td&gt;&lt;span class=&quot;user-icon&quot;&gt;&lt;/span&gt;Иван&lt;/td&gt;
&lt;td&gt;60 лет&lt;/td&gt;
&lt;td&gt;Москва&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;displayed&quot;&gt;
&lt;td&gt;&lt;span class=&quot;user-icon&quot;&gt;&lt;/span&gt;Александр&lt;/td&gt;
&lt;td&gt;30 лет&lt;/td&gt;
&lt;td&gt;Киев&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;displayed&quot;&gt;
&lt;td&gt;&lt;span class=&quot;user-icon&quot;&gt;&lt;/span&gt;Анна&lt;/td&gt;
&lt;td&gt;30 лет&lt;/td&gt;
&lt;td&gt;Москва&lt;/td&gt;
&lt;/tr&gt;
)
Pos := 1, match := &quot;&quot;
While Pos := Regexmatch(var, &quot;s)(?:^|\R)&lt;td&gt;&lt;span class=&quot;&quot;user-icon&quot;&quot;&gt;&lt;/span&gt;(\D*)&lt;/td&gt;(?:[^\r\n]*\R){2}&lt;td&gt;Москва&lt;/td&gt;(?:$|\R)&quot;, match, Pos+StrLen(match))
   result .= match1 &quot;`n&quot;
msgbox % result</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (mafckz)]]></author>
			<pubDate>Sat, 16 Apr 2016 02:40:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=102623#p102623</guid>
		</item>
		<item>
			<title><![CDATA[AHK: вывод строки при совпадении со смежными]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=102622#p102622</link>
			<description><![CDATA[<p>День добрый. Есть следующая необходимость: из данного кода необходимо выводить лишь тех, чье проживание соответствует городу Москва. Выводить нужно именно имена. Реализуемо ли это?</p><div class="codebox"><pre><code>
&lt;tr class=&quot;displayed&quot;&gt;
&lt;td&gt;&lt;span class=&quot;user-icon&quot;&gt;&lt;/span&gt;Иван&lt;/td&gt;
&lt;td&gt;60 лет&lt;/td&gt;
&lt;td&gt;Москва&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;displayed&quot;&gt;
&lt;td&gt;&lt;span class=&quot;user-icon&quot;&gt;&lt;/span&gt;Александр&lt;/td&gt;
&lt;td&gt;30 лет&lt;/td&gt;
&lt;td&gt;Киев&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;displayed&quot;&gt;
&lt;td&gt;&lt;span class=&quot;user-icon&quot;&gt;&lt;/span&gt;Анна&lt;/td&gt;
&lt;td&gt;30 лет&lt;/td&gt;
&lt;td&gt;Москва&lt;/td&gt;
&lt;/tr&gt;
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (darthmakr)]]></author>
			<pubDate>Sat, 16 Apr 2016 01:09:17 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=102622#p102622</guid>
		</item>
	</channel>
</rss>
