<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Send до знака]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9199&amp;type=atom" />
	<updated>2014-01-31T20:00:32Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9199</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Send до знака]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79643#p79643" />
			<content type="html"><![CDATA[<p>Согласен.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-01-31T20:00:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79643#p79643</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Send до знака]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79642#p79642" />
			<content type="html"><![CDATA[<p>Да, так и есть. И даже если нужно последнее предложение, разница на глаз небудет заметна:<br /></p><div class="codebox"><pre><code> 
Loop 100000
   BigText .= &quot;Серый форум.Разработка скриптов&quot;
MsgBox Текст готов.
RegExMatch(BigText, &quot;.*\.(.*)&quot;, Result)
MsgBox % Result1
MsgBox % SubStr(BigText, InStr(BigText, &quot;.&quot;,,0)+1) 
</code></pre></div><p>Но думаю что пригодится это учитывать в программах с большими циклами.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-01-31T19:58:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79642#p79642</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Send до знака]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79641#p79641" />
			<content type="html"><![CDATA[<p>В реальной ситуации точка будет недалеко от начала текста, и разница не станет принципиальной.<br /></p><div class="codebox"><pre><code>Text = Серый форум Разработка скриптов.
Loop 100000
   BigText .= &quot;Серый форум Разработка скриптов.&quot;
MsgBox Текст готов.
RegExMatch(BigText, &quot;(.*?)\.&quot;, Result)
MsgBox % Result1
MsgBox % RegExReplace(BigText, &quot;s)(.*?)\..*&quot;, &quot;$1&quot;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-01-31T19:39:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79641#p79641</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Send до знака]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79640#p79640" />
			<content type="html"><![CDATA[<p>И в 3 раза быстрее RegExMatch:<br /></p><div class="codebox"><pre><code>
Text = Серый форум.Разработка скриптов.
Start := A_TickCount
Loop 1000000
    RegExMatch(Text, &quot;(.*?)\.&quot;, Result)
MsgBox % A_TickCount - Start
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-01-31T19:21:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79640#p79640</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Send до знака]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79639#p79639" />
			<content type="html"><![CDATA[<p>У меня получилось в 6 раз быстрее:<br /></p><div class="codebox"><pre><code>Text = Серый форум.Разработка скриптов.
Start := A_TickCount
Loop 1000000
    SubStr(Text, 1, InStr(Text, &quot;.&quot;)-1) 
MsgBox % A_TickCount - Start</code></pre></div><div class="codebox"><pre><code>Text = Серый форум.Разработка скриптов.
Start := A_TickCount
Loop 1000000
    RegExReplace(Text, &quot;s)(.*?)\..*&quot;, &quot;$1&quot;)
MsgBox % A_TickCount - Start</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-01-31T19:19:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79639#p79639</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Send до знака]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79638#p79638" />
			<content type="html"><![CDATA[<p>Насчёт скорости — тут экспериментировать нужно, что будет быстрее. Для начинающих, конечно, проще твой вариант, для меня без разницы.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-01-31T19:13:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79638#p79638</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Send до знака]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79637#p79637" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Справка пишет:</cite><blockquote><p>To search for a simple substring inside a larger string, use InStr() because it is faster than RegExMatch().</p></blockquote></div><p>Ну так эти функции намного проще, в сравнении с RegEx.?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-01-31T19:07:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79637#p79637</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Send до знака]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79635#p79635" />
			<content type="html"><![CDATA[<p>Не знаю, в твоём варианте используются 2 функции вместо одной.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-01-31T18:58:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79635#p79635</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Send до знака]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79630#p79630" />
			<content type="html"><![CDATA[<p>Для такого случая мучать RegEx избыточно, только если в целях ознакомления на простой задаче.<br /></p><div class="codebox"><pre><code>
Text = Серый форум.Разработка скриптов.
MsgBox % SubStr(Text, 1, InStr(Text, &quot;.&quot;)-1)
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-01-31T18:37:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79630#p79630</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Send до знака]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79626#p79626" />
			<content type="html"><![CDATA[<p>Действительно, значок &quot;?&quot; знает свое дело <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" />.</p>]]></content>
			<author>
				<name><![CDATA[sergeiplugatyr]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30382</uri>
			</author>
			<updated>2014-01-31T18:21:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79626#p79626</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Send до знака]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79625#p79625" />
			<content type="html"><![CDATA[<p>Так тоже не сработает, если </p><div class="codebox"><pre><code>Text = Серый форум.Разработка скриптов.</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-01-31T18:11:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79625#p79625</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Send до знака]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79623#p79623" />
			<content type="html"><![CDATA[<p>Почитав, немного &quot;укоротил&quot; код:<br /></p><div class="codebox"><pre><code>1::
Text = Серый форум.Разработка скриптов
RegExMatch(Text, &quot;(.*)\.&quot;, Result)
SendInput, % Result1</code></pre></div>]]></content>
			<author>
				<name><![CDATA[sergeiplugatyr]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30382</uri>
			</author>
			<updated>2014-01-31T18:07:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79623#p79623</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Send до знака]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79622#p79622" />
			<content type="html"><![CDATA[<p>Смотрите, ваш вариант не работает:<br /></p><div class="codebox"><pre><code>Text = Серый форум.Разработка скриптов.
RegExMatch(Text, &quot;(.*[.])&quot;, Result)
StringTrimRight, Result1, Result1, 1
MsgBox, % Result1</code></pre></div><p>Правильно:<br /></p><div class="codebox"><pre><code>Text = Серый форум.Разработка скриптов.
RegExMatch(Text, &quot;(.*?)\.&quot;, Result)
MsgBox, % Result1
; или
MsgBox, % RegExReplace(Text, &quot;s)(.*?)\..*&quot;, &quot;$1&quot;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-01-31T18:06:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79622#p79622</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Send до знака]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79621#p79621" />
			<content type="html"><![CDATA[<p>Раскусили вы меня, я читал но много не понял.</p>]]></content>
			<author>
				<name><![CDATA[sergeiplugatyr]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30382</uri>
			</author>
			<updated>2014-01-31T17:45:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79621#p79621</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Send до знака]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79620#p79620" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>sergeiplugatyr пишет:</cite><blockquote><p>Читал</p></blockquote></div><p>Не верю. Например, зачем там квадратные скобки? Они обычно используются для объединения списка символов, когда может использоваться любой из них. А тут в них всего один. Понятно, что схватили первое, что под руку попалось. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-01-31T17:42:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79620#p79620</id>
		</entry>
</feed>
