<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: RegExReplace и опция Limit]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=11717</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11717&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: RegExReplace и опция Limit».]]></description>
		<lastBuildDate>Mon, 13 Jun 2016 21:12:15 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: RegExReplace и опция Limit]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=105203#p105203</link>
			<description><![CDATA[<p><strong>Malcev</strong>Да уж, глупо-то как. Виноват, простите. Башка к ночи совсем не варит (</p>]]></description>
			<author><![CDATA[null@example.com (estenha)]]></author>
			<pubDate>Mon, 13 Jun 2016 21:12:15 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=105203#p105203</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: RegExReplace и опция Limit]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=105202#p105202</link>
			<description><![CDATA[<div class="codebox"><pre><code>test := RegExReplace(test, &quot;&gt;.*?&lt;&quot;, &quot;Zamena&quot;, ReplacementCount, 1)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 13 Jun 2016 21:00:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=105202#p105202</guid>
		</item>
		<item>
			<title><![CDATA[AHK: RegExReplace и опция Limit]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=105201#p105201</link>
			<description><![CDATA[<p>Доброго времени суток!<br />Не работает (или я не понимаю, КАК должна работать) опция Limit.<br />Есть такой вот код:<br /></p><div class="codebox"><pre><code>F5::
{
test := &quot;&gt;&lt;Text&gt;&lt;&quot;
test := RegExReplace(test, &quot;&gt;.*?&lt;&quot;, &quot;Zamena&quot;, ReplacementCount)
MsgBox % test
}
return</code></pre></div><p>В нем замена происходит - получается <strong>ZamenaTextZamena</strong></p><p>Если сделать вот так:<br /></p><div class="codebox"><pre><code>F5::
{
test := &quot;&gt;&lt;Text&gt;&lt;&quot;
test := RegExReplace(test, &quot;&gt;.*?&lt;&quot;, &quot;Zamena&quot;, ReplacementCount, Limit = 1)
MsgBox % test
}
return
</code></pre></div><p>то вообще ничего не происходит, какое бы значение Limit не установить. Т.е., например, хочу, чтобы было на выходе <strong>ZamenaText&gt;&lt;</strong>. Не получается. Сама задача более сложная, но вот упростил максимально и увидел, что что-то не то с этим Limit. Ну, или я, возможно, чего-то не понимаю, но уже перепробовал разные варианты, пока не могу додуматься.</p>]]></description>
			<author><![CDATA[null@example.com (estenha)]]></author>
			<pubDate>Mon, 13 Jun 2016 20:50:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=105201#p105201</guid>
		</item>
	</channel>
</rss>
