<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: RegExReplace и опция Limit]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11717&amp;type=atom" />
	<updated>2016-06-13T21:12:15Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11717</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExReplace и опция Limit]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105203#p105203" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>Да уж, глупо-то как. Виноват, простите. Башка к ночи совсем не варит (</p>]]></content>
			<author>
				<name><![CDATA[estenha]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33963</uri>
			</author>
			<updated>2016-06-13T21:12:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105203#p105203</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExReplace и опция Limit]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105202#p105202" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>test := RegExReplace(test, &quot;&gt;.*?&lt;&quot;, &quot;Zamena&quot;, ReplacementCount, 1)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-06-13T21:00:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105202#p105202</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: RegExReplace и опция Limit]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=105201#p105201" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[estenha]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33963</uri>
			</author>
			<updated>2016-06-13T20:50:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=105201#p105201</id>
		</entry>
</feed>
