<?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="http://forum.script-coding.com/extern.php?action=feed&amp;tid=8151&amp;type=atom" />
	<updated>2021-01-13T03:50:30Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=8151</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Регулярные выражения]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=144712#p144712" />
			<content type="html"><![CDATA[<p>В конструкции if допустимо использовать любое выражение или функцию, которые что-либо возвращают.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2021-01-13T03:50:30Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=144712#p144712</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Регулярные выражения]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=144711#p144711" />
			<content type="html"><![CDATA[<p>Допустимо ли использовать проверку по Regex внутри <strong>if</strong>? Как-то так, чтобы была найдена папка с именем &quot;name&quot;, а так же &quot;name_слово&quot;? —<br /></p><div class="codebox"><pre><code>
if (FileExist(A_ScriptDir &quot;\name&quot; (_\w+)? ))</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2021-01-12T22:51:46Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=144711#p144711</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Регулярные выражения]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142469#p142469" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>^[^—]*?$       ; без тире
^[^—]*—[^—]*?$ ; одно тире</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-10-05T13:16:34Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142469#p142469</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Регулярные выражения]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142468#p142468" />
			<content type="html"><![CDATA[<p>А каким будет шаблон для одного тире? Так не срабатывает:<br /></p><div class="codebox"><pre><code>
(.*—.*){1}
(.*—.*){1,}
(.*—.*){,1}
(.*—.*){1,1}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-10-05T09:35:45Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142468#p142468</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Регулярные выражения]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142466#p142466" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>В смысле задача нерешаема средствами AutoHotkey?</p></blockquote></div><p>Решаема, но там один файл всего и проще в N++ вывести всё, что предстоит заменить, просмотреть и заменить окончательно. В PowerGREP еще гибче это делается.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-10-04T20:34:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142466#p142466</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Регулярные выражения]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142458#p142458" />
			<content type="html"><![CDATA[<p>В Notepad++ строки без тире так:<br /></p><div class="codebox"><pre><code>^(.(?!—))*$</code></pre></div><p>Больше одного тире:<br /></p><div class="codebox"><pre><code>(.*—.*){2,}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-10-04T17:41:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142458#p142458</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Регулярные выражения]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142457#p142457" />
			<content type="html"><![CDATA[<p>В смысле задача нерешаема средствами AutoHotkey?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-10-04T17:17:02Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142457#p142457</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Регулярные выражения]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142456#p142456" />
			<content type="html"><![CDATA[<p>Не, всё-таки затрудняюсь именно в коде показать. Мне нужен шаблон не для использования из кода, а в Notepade++ и подобных программах. То есть, нужен шаблон для поиска строк без тире, а так же строк, в которых тире больше одного.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-10-04T16:44:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142456#p142456</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Регулярные выражения]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142436#p142436" />
			<content type="html"><![CDATA[<p>Я пока с телефона набираю, поэтому дефис продублировал. Вечерком приведу пример.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-10-04T06:35:38Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142436#p142436</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Регулярные выражения]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142435#p142435" />
			<content type="html"><![CDATA[<p>Я, честно говоря, был уверен, что длинное тире это <strong>—</strong><br />Можете привести полный код с текстом?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-10-04T06:30:28Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142435#p142435</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Регулярные выражения]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142434#p142434" />
			<content type="html"><![CDATA[<p>Вот так </p><div class="codebox"><pre><code>.*--.*</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-10-04T06:18:29Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142434#p142434</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Регулярные выражения]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142433#p142433" />
			<content type="html"><![CDATA[<p>А как бы вы искали строки с одним тире?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-10-04T03:59:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142433#p142433</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Регулярные выражения]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142432#p142432" />
			<content type="html"><![CDATA[<p>Каким будет шаблон для поиска строк без длинного тире? А так же для строк, в которых тире два и более?</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-10-03T23:32:41Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142432#p142432</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Регулярные выражения]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=139323#p139323" />
			<content type="html"><![CDATA[<p>Как перечисленные теги переделывать в одну строку, — то есть, чтобы например между &lt;h2&gt;&lt;/h2&gt; не было переводов строки?<br /></p><div class="codebox"><pre><code>fbody =
(
	&lt;div&gt;
		&lt;h2&gt;

&lt;a class=&quot;cntr&quot; href=&quot;https://paginatransversal.wordpress.com/2016/02/05/raices-espirituales-del-conflicto-ruso-estadounidense&quot;&gt;Raíces espirituales del conflicto ruso-estadounidense&lt;/a&gt;

		&lt;/h2&gt;
	&lt;/div&gt;
)
MsgBox % RegExReplace(fbody, &quot;is)&lt;(p|h1|h2|h3|h4|h5|h6|li)(.*?)\R(.*?)&lt;/\1&gt;&quot;, &quot;$1$2 &lt;/$1&gt;&quot;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-05-04T01:09:08Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=139323#p139323</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Регулярные выражения]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=139322#p139322" />
			<content type="html"><![CDATA[<p>То есть, между открытой и закрытой не должно быть других ломаных скобок.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-05-04T00:57:48Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=139322#p139322</id>
		</entry>
</feed>
