<?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=18339&amp;type=atom" />
	<updated>2024-12-19T19:46:02Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=18339</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161818#p161818" />
			<content type="html"><![CDATA[<p>Попробуйте так:<br /></p><div class="codebox"><pre><code>var := &quot;1232-214124 Приветствую всех 214, 21 (19.12.2024)&quot;
MsgBox % RegExReplace(var, &quot;^\d+-\d+\K\s.*&quot;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-12-19T19:46:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161818#p161818</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161816#p161816" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>,<br />А так, да, верно. Числа только сначала строки. Числа до и после дефиса, включающие в себя сам дефис. До пробела.</p>]]></content>
			<author>
				<name><![CDATA[qwerlog123]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=44352</uri>
			</author>
			<updated>2024-12-19T18:41:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161816#p161816</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161815#p161815" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>,<br />Мне из текста нужно вытянуть в переменную только &quot;числа-числа&quot;, к примеру&nbsp; &quot;111-111&quot;.</p>]]></content>
			<author>
				<name><![CDATA[qwerlog123]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=44352</uri>
			</author>
			<updated>2024-12-19T17:17:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161815#p161815</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161814#p161814" />
			<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>2024-12-19T16:44:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161814#p161814</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: RegExMatch]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161813#p161813" />
			<content type="html"><![CDATA[<p>Надо составить шаблон типа &quot;четыре цифры, потом тире, потом шесть цифр, далее пробел, затем любое количество любых символов&quot;. А после поиска глянуть содержимое переменной, отвечающую за &quot;четыре цифры, потом тире, потом шесть цифр&quot;. Если соответствие найдено, то выдать найденное, в противном случае написать &quot;соответствие не найдено&quot;.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2024-12-19T16:09:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161813#p161813</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: RegExMatch]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161812#p161812" />
			<content type="html"><![CDATA[<p>Приветствую, дорогие кодеры!<br />Решил вспомнить молодость, и на новой работе появилась возможность оптимизировать рабочий процесс. Я понимаю, что вопрос уж очень простой&nbsp; и возможно не достоен данной темы, но я все никак не могу разобраться в RegExMath/Replace. Суть:<br />Есть переменная с текстом, к примеру:<br /></p><div class="codebox"><pre><code>var := &quot;1232-214124 Приветствую всех 214, 21 (19.12.2024)&quot;</code></pre></div><p>Нужно вытащить только 1232-214124.<br />Раньше в подобных функциях как рыба в воде плавал, сейчас же читая документацию, вообще ничего понять не могу. Спасибо!</p>]]></content>
			<author>
				<name><![CDATA[qwerlog123]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=44352</uri>
			</author>
			<updated>2024-12-19T15:52:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161812#p161812</id>
		</entry>
</feed>
