<?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=6276&amp;type=atom" />
	<updated>2011-10-01T17:37:22Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6276</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: шаблон]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52072#p52072" />
			<content type="html"><![CDATA[<p><strong>Александр_</strong><br />Именно так). Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Вадим]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27175</uri>
			</author>
			<updated>2011-10-01T17:37:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52072#p52072</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: шаблон]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52070#p52070" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Вадим пишет:</cite><blockquote><p>Есть переменная x, ее значение &quot;stopgame.ru/download/17107/chaos_legion/8_trainer.html&quot;<br />Как переменной y присвоить значение &quot;chaos_legion&quot;. Т.е. создать шаблон.<br />Можно сделать через StringMid, но бывает вместо &quot;8&quot; двузначные числа.</p></blockquote></div><p>Если я правильно понял, то нужно выделить подстроку из &quot;обычных&quot;(буквы английского алфавита, цифры и нижний слэш) символов, слева от которой слэш, а справа слэш, потом 1-2 цифры и нижний слэш. Если так, то:<br /></p><div class="codebox"><pre><code>x:=&quot;stopgame.ru/download/17107/chaos_legion/8_trainer.html&quot;
RegExMatch(x, &quot;/(\w*)/\d{1,2}_&quot; , x)
msgbox %x%`n%x1%</code></pre></div><p>в переменной x1 искомая подстрока, в x весь шаблон.</p>]]></content>
			<author>
				<name><![CDATA[Александр_]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24888</uri>
			</author>
			<updated>2011-10-01T17:24:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52070#p52070</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: шаблон]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=52068#p52068" />
			<content type="html"><![CDATA[<p>Есть переменная x, ее значение &quot;stopgame.ru/download/17107/chaos_legion/8_trainer.html&quot;<br />Как переменной y присвоить значение &quot;chaos_legion&quot;. Т.е. создать шаблон.<br />Можно сделать через StringMid, но бывает вместо &quot;8&quot; двузначные числа.</p>]]></content>
			<author>
				<name><![CDATA[Вадим]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27175</uri>
			</author>
			<updated>2011-10-01T16:30:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=52068#p52068</id>
		</entry>
</feed>
