<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Использование регулярки]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11825&amp;type=atom" />
	<updated>2016-07-19T16:59:20Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11825</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование регулярки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106192#p106192" />
			<content type="html"><![CDATA[<p><strong>yalanne</strong> Огромное спасибо. Вопрос исчерпан.</p>]]></content>
			<author>
				<name><![CDATA[Drusik]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33171</uri>
			</author>
			<updated>2016-07-19T16:59:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106192#p106192</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование регулярки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106191#p106191" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>text = A-12

if RegExMatch(text,&quot;[А-ЯA-Z]\-([0-9]+)&quot;,matchNum) and (matchNum1 &lt;= 24)
	msgbox % text</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-07-19T16:42:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106191#p106191</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование регулярки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106190#p106190" />
			<content type="html"><![CDATA[<p><strong>yalanne</strong> Спасибо большое, то что нужно. И еще такой маленький вопросик, как мне ограничить число от 1 до 24?</p><p>Что бы принимало к примеру только от А-1 до А-24</p>]]></content>
			<author>
				<name><![CDATA[Drusik]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33171</uri>
			</author>
			<updated>2016-07-19T16:30:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106190#p106190</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование регулярки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106189#p106189" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>text = A-31

if (text ~= &quot;[А-ЯA-Z]\-[0-9]+&quot;)
	msgbox % text</code></pre></div><p>~= как RegExMatch(). Haystack слева от этого оператора, а справа идет NeedleRegEx.</p>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-07-19T16:20:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106189#p106189</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование регулярки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106188#p106188" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong></p><p>Упустил этот момент. Исправил</p>]]></content>
			<author>
				<name><![CDATA[Drusik]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33171</uri>
			</author>
			<updated>2016-07-19T16:01:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106188#p106188</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Использование регулярки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106187#p106187" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Drusik пишет:</cite><blockquote><p>Суть заключается в том что в игре (SA:MP)</p></blockquote></div><p><strong>Drusik</strong>, на вопросы по играм в этой ветке не отвечают. Либо вы убираете из поста упоминание об игре, либо переношу в Games.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-07-19T15:57:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106187#p106187</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Использование регулярки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106186#p106186" />
			<content type="html"><![CDATA[<p>Добрый день формучане.</p><p>Столкнулся с такой проблемой на AHK. Пытался Гуглить, убил много времени, но до меня так и не дошло.<br />Есть такой вот код</p><div class="codebox"><pre><code>
!7::
    showDialog(&quot;1&quot;, &quot;{FFFAFA}Принять&quot;, &quot;{FFFAFA}Укажите значения&quot;, &quot;Ок&quot;)
    input, text, V, {Enter}
	KeyWait, Enter, D
    sleep 500

	    if (text = &quot;&quot;) {
		    sendinput {f6}Значение: %text%{enter}
		} else {
		    showGameText(&quot;~r~closed&quot;, 500, 1)
		}
return
</code></pre></div><p>Суть заключается в том что у меня открываеться диалоговое окно, и туда указываю значение, к пример &quot;А-10&quot; или же &quot;Ж-14&quot;</p><p>Как мне сделать регулярку на проверку на подобии<br />(Грубый пример)<br /></p><div class="codebox"><pre><code>
if (text = &quot;[А-Я]-[0-9]&quot;)
</code></pre></div><p>Помогите пожалуйста кто чем может. Или поделитесь ссылкой, где все это подробно расписано. <br />Заранее очень благодарен, так как уже неоднократно помогали.</p>]]></content>
			<author>
				<name><![CDATA[Drusik]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33171</uri>
			</author>
			<updated>2016-07-19T15:53:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106186#p106186</id>
		</entry>
</feed>
