<?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=11817</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11817&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Отделение числа из текста».]]></description>
		<lastBuildDate>Sun, 17 Jul 2016 23:52:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Отделение числа из текста]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106138#p106138</link>
			<description><![CDATA[<p>&quot;\D&quot; - точно, убрать все нецифры - самое простое. *UCP - про это знаю.</p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Sun, 17 Jul 2016 23:52:56 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106138#p106138</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отделение числа из текста]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106137#p106137</link>
			<description><![CDATA[<p>Можно так:<br /></p><div class="codebox"><pre><code>MsgBox % RegexReplace(mytext, &quot;.*?(\d+).*&quot;, &quot;$1&quot;)
MsgBox % RegExReplace(mytext, &quot;\D&quot;)</code></pre></div><p>А чтобы для кириллицы работала \b нужно вставить (*UCP).<br /><a href="https://autohotkey.com/docs/misc/RegEx-QuickRef.htm#Options">https://autohotkey.com/docs/misc/RegEx- … tm#Options</a></p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sun, 17 Jul 2016 22:39:31 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106137#p106137</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отделение числа из текста]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106135#p106135</link>
			<description><![CDATA[<p><strong>Malcev</strong><br />Более того, я добавил сейчас ещё .* спереди. Без того и другого остаётся проблема с обрезкой числа. Это какой-то баг AHK. Число, судя по примерам, всегда идёт либо после пробела либо в начале текста. Поэтому ошибки не будет.</p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Sun, 17 Jul 2016 20:48:23 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106135#p106135</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отделение числа из текста]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106133#p106133</link>
			<description><![CDATA[<p>Спасибо за помощь.</p>]]></description>
			<author><![CDATA[null@example.com (tsarsky)]]></author>
			<pubDate>Sun, 17 Jul 2016 18:53:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106133#p106133</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отделение числа из текста]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106132#p106132</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>MsgBox % RegexReplace(mytext, &quot;\b(\d+).*&quot;, &quot;$1&quot;)</p></blockquote></div><p>А для чего тут \b?<br />При том с кириллицей \b не работает.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Sun, 17 Jul 2016 18:45:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106132#p106132</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Отделение числа из текста]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106131#p106131</link>
			<description><![CDATA[<div class="codebox"><pre><code>; Так:
RegexMatch(mytext, &quot;(\d+)&quot;, match)
MsgBox % match1
; Или так:
MsgBox % RegexReplace(mytext, &quot;.*\b(\d+).*&quot;, &quot;$1&quot;)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Sun, 17 Jul 2016 18:33:46 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106131#p106131</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Отделение числа из текста]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106130#p106130</link>
			<description><![CDATA[<p>Всем привет! Пишу скрипт и понадобился такой приём, как работа с динамическим текстом. Текст записывается в перемённую, а в тексте хранится какое-нибудь число. Как можно получить это число?</p><p>Примеры:<br /></p><div class="codebox"><pre><code>mytext := &quot;Привет, мне 20 пончиков.&quot;</code></pre></div><div class="codebox"><pre><code>mytext := &quot;Давай ровно 5.&quot;</code></pre></div><div class="codebox"><pre><code>mytext := &quot;15 минут.&quot;</code></pre></div><p>Как итог, то из первого примера нужно вытянуть число 20, из второго число 5 и из последнего число 15.</p>]]></description>
			<author><![CDATA[null@example.com (tsarsky)]]></author>
			<pubDate>Sun, 17 Jul 2016 18:10:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106130#p106130</guid>
		</item>
	</channel>
</rss>
