<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Помощь с RegExReplace.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=18346&amp;type=atom" />
	<updated>2025-03-25T10:08:03Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=18346</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помощь с RegExReplace.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=162125#p162125" />
			<content type="html"><![CDATA[<p><strong>1srafel</strong> Если будет чуть больше информации, возможно мы сможем помочь куда лучше.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2025-03-25T10:08:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=162125#p162125</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помощь с RegExReplace.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=162124#p162124" />
			<content type="html"><![CDATA[<p>Это я так их разбиваю на сотни, десятки и единицы, чтобы проще было определять, где что. Узнал, что после $9 их надо заключать в фигурные скобки.</p>]]></content>
			<author>
				<name><![CDATA[1srafel]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43566</uri>
			</author>
			<updated>2025-03-23T22:42:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=162124#p162124</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помощь с RegExReplace.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=162123#p162123" />
			<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>2025-03-23T19:27:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=162123#p162123</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помощь с RegExReplace.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=162122#p162122" />
			<content type="html"><![CDATA[<p>По какой причине пример выводит числа, которых нет в исходной переменной?<br /></p><div class="codebox"><pre><code>n := 1171

n:=RegExReplace(n,&quot;U)^(\d)?(\d)?(\d)?(\d)?(\d)?(\d)?(\d)?(\d)?(\d)?(\d)?(\d)?(\d)$&quot;, &quot;&lt;«$1»“$2”‘$3’&gt;&lt;«$4»“$5”‘$6’&gt;&lt;«$7»“$8”‘$9’&gt;&lt;«$10»“$11”‘$12’&gt;&quot;)
loop 10
   n:=RegExReplace(n,&quot;(&lt;&gt;|«»|“”|‘’)&quot;, &quot;&quot;)

MsgBox, %n%</code></pre></div><p>Задача в том, чтобы числа группировались по три штуки с конца, а потом внутри группы - оборачивались тремя видами кавычек. Но почему-то цифровой шаблон нестандартно отрабатывает.</p>]]></content>
			<author>
				<name><![CDATA[1srafel]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43566</uri>
			</author>
			<updated>2025-03-23T01:16:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=162122#p162122</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помощь с RegExReplace.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161851#p161851" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Попробуйте так:<br /></p><div class="codebox"><pre><code>MsgBox % RegExReplace(text, &quot;m`a)=\K.*\\&quot;)</code></pre></div></blockquote></div><p>Премного благодарен, работает как надо!</p>]]></content>
			<author>
				<name><![CDATA[anreichxxx]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43538</uri>
			</author>
			<updated>2024-12-31T17:52:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161851#p161851</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помощь с RegExReplace.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161850#p161850" />
			<content type="html"><![CDATA[<p>Попробуйте так:<br /></p><div class="codebox"><pre><code>MsgBox % RegExReplace(text, &quot;m`a)=\K.*\\&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-31T17:36:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161850#p161850</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Помощь с RegExReplace.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161848#p161848" />
			<content type="html"><![CDATA[<p>Ребят, с Новым годом! Прошу помощи, есть текстовый документ, в котором надо все директории файлов обрезать,<br />оставив имя и расширение файла. Директории и имена файлов всегда меняются, неизменным остается только &quot;file=&quot;.<br />Пытался отталкиваться от последней наклонной, сколько бьюсь, никак не получается.<br />Пример: строка file=C:\Users\Admin\Desktop\3\2\Test.zip должна стать file=Test.zip</p><p>Вид файла<br />file=C:\Users\Admin\Desktop\3\2\Test.zip<br />Version 34534<br />file=C:\Users\Admin\Desktop\Test.exe<br />Version 34534<br />file=C:\Users\Admin\Desktop\3\2\test\File.zip<br />Version 34534<br />file=C:\Users\Admin\Desktop\3\2\1\File.mp3</p><div class="codebox"><pre><code>F2::
FileDelete, 2.txt
FileRead, Text, 1.txt
NewText:=RegExReplace(Text, &quot;file=[^`n]*&quot;, &quot;file=&quot;)
FileAppend, %NewText%, 2.txt
Msgbox, %NewText%
Return </code></pre></div>]]></content>
			<author>
				<name><![CDATA[anreichxxx]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43538</uri>
			</author>
			<updated>2024-12-31T16:46:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161848#p161848</id>
		</entry>
</feed>
