<?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=12055</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12055&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK:Выбор текста в переменную».]]></description>
		<lastBuildDate>Mon, 03 Oct 2016 02:58:32 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK:Выбор текста в переменную]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=108165#p108165</link>
			<description><![CDATA[<p><strong>Flasher</strong><br />Спасибо, закрывайте тему.</p>]]></description>
			<author><![CDATA[null@example.com (wladkokopops)]]></author>
			<pubDate>Mon, 03 Oct 2016 02:58:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=108165#p108165</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Выбор текста в переменную]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=108164#p108164</link>
			<description><![CDATA[<p><strong>wladkokopops</strong><br />Типа такого?:<br /></p><div class="codebox"><pre><code>Text = &lt;Number&gt;1&lt;/Number&gt;&lt;owner&gt;Player1&lt;/Owner&gt;&lt;member&gt;player1a,player1b&lt;/member&gt;&lt;Number&gt;2&lt;/Number&gt;&lt;owner&gt;Player2&lt;/Owner&gt;&lt;member&gt;player2a,player2b&lt;/member&gt;&lt;Number&gt;3&lt;/Number&gt;&lt;owner&gt;Player3&lt;/Owner&gt;&lt;member&gt;player3a,player3b&lt;/member&gt;&lt;Number&gt;4&lt;/Number&gt;&lt;owner&gt;Player4&lt;/Owner&gt;&lt;member&gt;player4a,player4b&lt;/member&gt;

Loop, Parse, % StrReplace(Text, &quot;r&gt;&lt;N&quot;, &quot;r&gt;`r`n&lt;N&quot;), `n, `r
MsgBox,, % RegexMatch(A_LoopField, &quot;i)&lt;Number&gt;(\d+)&lt;/Number&gt;&lt;owner&gt;(.+)&lt;/Owner&gt;&quot;, Match), %Match1%: %Match2%</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Sun, 02 Oct 2016 23:48:09 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=108164#p108164</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Выбор текста в переменную]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=108159#p108159</link>
			<description><![CDATA[<p><strong>Flasher</strong><br />А второй момент с распознаванием переменной между словами осуществить реально?</p>]]></description>
			<author><![CDATA[null@example.com (wladkokopops)]]></author>
			<pubDate>Sun, 02 Oct 2016 17:47:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=108159#p108159</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Выбор текста в переменную]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=108158#p108158</link>
			<description><![CDATA[<div class="codebox"><pre><code>Text = &lt;Number&gt;1&lt;/Number&gt;&lt;owner&gt;Player1&lt;/Owner&gt;&lt;member&gt;player1a,player1b&lt;/member&gt;&lt;Number&gt;2&lt;/Number&gt;&lt;owner&gt;Player2&lt;/Owner&gt;&lt;member&gt;player2a,player2b&lt;/member&gt;&lt;Number&gt;3&lt;/Number&gt;&lt;owner&gt;Player3&lt;/Owner&gt;&lt;member&gt;player3a,player3b&lt;/member&gt;
&lt;Number&gt;4&lt;/Number&gt;&lt;owner&gt;Player4&lt;/Owner&gt;&lt;member&gt;player4a,player4b&lt;/member&gt;
MsgBox % StrReplace(Text, &quot;r&gt;&lt;N&quot;, &quot;r&gt;`r`n&lt;N&quot;)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Sun, 02 Oct 2016 15:44:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=108158#p108158</guid>
		</item>
		<item>
			<title><![CDATA[AHK:Выбор текста в переменную]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=108157#p108157</link>
			<description><![CDATA[<p>Есть текстовый документ:</p><div class="codebox"><pre><code>
&lt;Number&gt;1&lt;/Number&gt;&lt;owner&gt;Player1&lt;/Owner&gt;&lt;member&gt;player1a,player1b&lt;/member&gt;&lt;Number&gt;2&lt;/Number&gt;&lt;owner&gt;Player2&lt;/Owner&gt;&lt;member&gt;player2a,player2b&lt;/member&gt;&lt;Number&gt;3&lt;/Number&gt;&lt;owner&gt;Player3&lt;/Owner&gt;&lt;member&gt;player3a,player3b&lt;/member&gt;
&lt;Number&gt;4&lt;/Number&gt;&lt;owner&gt;Player4&lt;/Owner&gt;&lt;member&gt;player4a,player4b&lt;/member&gt;
</code></pre></div><p>Надо чтобы каждое &lt;Number&gt; стало новой строкой.<br />Чтобы получилось так. ↓<br /></p><div class="codebox"><pre><code>
&lt;Number&gt;1&lt;/Number&gt;&lt;owner&gt;Player1&lt;/Owner&gt;&lt;member&gt;player1a,player1b&lt;/member&gt;
&lt;Number&gt;2&lt;/Number&gt;&lt;owner&gt;Player2&lt;/Owner&gt;&lt;member&gt;player2a,player2b&lt;/member&gt;
&lt;Number&gt;3&lt;/Number&gt;&lt;owner&gt;Player3&lt;/Owner&gt;&lt;member&gt;player3a,player3b&lt;/member&gt;
&lt;Number&gt;4&lt;/Number&gt;&lt;owner&gt;Player4&lt;/Owner&gt;&lt;member&gt;player4a,player4b&lt;/member&gt;
</code></pre></div><p>После чего ...<br />Надо чтобы переменная Number искала &lt;Number&gt; и &lt;/Number&gt; и брала весь текст между ними.<br />А так же &lt;Owner&gt; и т.д.</p><p>Все мои попытки сделать это - напрасны, даже свои наброски стыдно скидывать(т.к еще новичок в этом деле).</p>]]></description>
			<author><![CDATA[null@example.com (wladkokopops)]]></author>
			<pubDate>Sun, 02 Oct 2016 15:31:30 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=108157#p108157</guid>
		</item>
	</channel>
</rss>
