<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: RegExMatch]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17301&amp;type=atom" />
	<updated>2022-08-11T12:51:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17301</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=154338#p154338" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>str := &quot;Проверка тест1(2); и тест2(3);&quot;

RegExMatch(str, &quot;тест\d+\(\K[^)]+&quot;, out)
MsgBox, % out</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-08-11T12:51:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=154338#p154338</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=154337#p154337" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, цифру 2 та что в скобке test(2);</p>]]></content>
			<author>
				<name><![CDATA[andrey.a.polyakov.b2c]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42228</uri>
			</author>
			<updated>2022-08-11T12:01:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=154337#p154337</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=154335#p154335" />
			<content type="html"><![CDATA[<p>У меня с вашим примеров в переменную заносится не <strong>2); и тест2(3</strong> а <strong>тест1(2); и тест2(3);</strong>. Я не понимаю логики, что именно вы пытаетесь найти.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-08-11T11:38:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=154335#p154335</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: RegExMatch]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=154333#p154333" />
			<content type="html"><![CDATA[<p>Добрый день. Подскажите как сделать что бы RegExMatch искал первое вхождение, а не последнее?<br />Например:<br />Есть строка: <br /></p><div class="codebox"><pre><code>str := &quot;Проверка тест1(2); и тест2(3);&quot;</code></pre></div><p>И есть RegExMatch:<br /></p><div class="codebox"><pre><code>RegExMatch(str,&quot;(тест1|тест2)\((.*)\)\;&quot;,out)</code></pre></div><p>Вот тут в переменную out2 заносится: <strong>&quot;2); и тест2(3&quot;</strong><br />А нужно что бы там была <strong>2</strong>.<br />Как сделать что бы шаблон находя символ ; дальше его не искал в этой строке?</p>]]></content>
			<author>
				<name><![CDATA[andrey.a.polyakov.b2c]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42228</uri>
			</author>
			<updated>2022-08-11T09:34:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=154333#p154333</id>
		</entry>
</feed>
