<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Удаление закомментированных строк с помощью регулярных выражения]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=12291</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12291&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Удаление закомментированных строк с помощью регулярных выражения».]]></description>
		<lastBuildDate>Wed, 11 Jan 2017 12:31:06 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Удаление закомментированных строк с помощью регулярных выражения]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=110815#p110815</link>
			<description><![CDATA[<p>Понял, благодарю!<br />Вот уж, а я читая справку и тыкал `a сюда а не в опции:<br /><a href="mailto:RegExReplace(buffer, &quot;mi)//.+?<strong>`a</strong>&quot;, &quot;&quot;)">RegExReplace(buffer, &quot;mi)//.+?<strong>`a</strong>&quot;, &quot;&quot;)</a></p>]]></description>
			<author><![CDATA[null@example.com (avens)]]></author>
			<pubDate>Wed, 11 Jan 2017 12:31:06 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=110815#p110815</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Удаление закомментированных строк с помощью регулярных выражения]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=110814#p110814</link>
			<description><![CDATA[<p>Это новая строка любого вида, из одного или двух символов. По умолчанию новой строкой считается комбинация `r`n, к ней привязывается символ $. Но секция продолжения (buffer в вашем примере) по умолчанию соединяет строки через `n. Поэтому концы строк у вас не находятся. Это решается опцией `a. При ней концом строки считается один или два символа.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Wed, 11 Jan 2017 12:20:23 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=110814#p110814</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Удаление закомментированных строк с помощью регулярных выражения]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=110811#p110811</link>
			<description><![CDATA[<p>Благодарю всех! Три рабочих примера, отлично <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />Хоть не понимаю почему не работает конструкция:<br /></p><div class="codebox"><pre><code>RegExReplace(buffer, &quot;mi)//.+?$&quot;, &quot;&quot;)</code></pre></div><p>И что такое <strong>R</strong> в ваших примерах.</p>]]></description>
			<author><![CDATA[null@example.com (avens)]]></author>
			<pubDate>Wed, 11 Jan 2017 11:35:49 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=110811#p110811</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Удаление закомментированных строк с помощью регулярных выражения]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=110700#p110700</link>
			<description><![CDATA[<p>А у меня даже так:<br /></p><div class="codebox"><pre><code>buffer = 
(
string1
// comment string
// comment string
string2 // comment string
// comment string
string3
)

buffer := RegExReplace(buffer, &quot;m`a)\R?//.*&quot;)
MsgBox %buffer%</code></pre></div><p> <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 08 Jan 2017 17:11:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=110700#p110700</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Удаление закомментированных строк с помощью регулярных выражения]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=110699#p110699</link>
			<description><![CDATA[<p>А у меня так:<br /></p><div class="codebox"><pre><code>
buffer = 
(
string1
// comment string
// comment string
string2 // comment string
// comment string
string3
)

buffer := RegExReplace(buffer, &quot;m`a)\R?//.+$&quot;, &quot;&quot;)
MsgBox %buffer%
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Sun, 08 Jan 2017 16:12:54 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=110699#p110699</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Удаление закомментированных строк с помощью регулярных выражения]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=110695#p110695</link>
			<description><![CDATA[<p>У меня так работает:<br /></p><div class="codebox"><pre><code>buffer = 
(
string1
// comment string
// comment string
string2 // comment string
// comment string
string3
)

Loop, Parse, buffer, `n
{
var := RegExReplace(A_LoopField, &quot;mi)\/\/(.*)$&quot;, &quot;&quot;)
; If var ;Раскомментировать, если не нужны голые переносы строки
OutputVar .= var . &quot;`n&quot;
}
MsgBox, Результат:`r`n%OutputVar%
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Sun, 08 Jan 2017 14:54:48 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=110695#p110695</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Удаление закомментированных строк с помощью регулярных выражения]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=110693#p110693</link>
			<description><![CDATA[<div class="quotebox"><cite>alekksss пишет:</cite><blockquote><p>buffer := RegExReplace(buffer, &quot;mi)\/\/(.*)$&quot;, &quot;&quot;)</p></blockquote></div><p>Не знаю, у меня этот код возвращает пустоту..<br />А у вас работает этот код?</p>]]></description>
			<author><![CDATA[null@example.com (avens)]]></author>
			<pubDate>Sun, 08 Jan 2017 14:17:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=110693#p110693</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Удаление закомментированных строк с помощью регулярных выражения]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=110691#p110691</link>
			<description><![CDATA[<p>Hi! В теории так:<br /></p><div class="codebox"><pre><code>buffer := RegExReplace(buffer, &quot;mi)\/\/(.*)$&quot;, &quot;&quot;)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (alekksss)]]></author>
			<pubDate>Sun, 08 Jan 2017 12:46:51 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=110691#p110691</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Удаление закомментированных строк с помощью регулярных выражения]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=110690#p110690</link>
			<description><![CDATA[<p>Как с помощью AHK удалить закомментированные строки вида // comment string?<br /></p><div class="codebox"><pre><code>buffer = 
(
string1
// comment string
// comment string
string2 // comment string
// comment string
string3
)

buffer := RegExReplace(buffer, &quot;mi)//.+?$&quot;, &quot;&quot;) ; Почему то не работает
MsgBox %buffer%</code></pre></div><p>На выходе должно быть:<br /></p><div class="codebox"><pre><code>string1
string2
string3</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (avens)]]></author>
			<pubDate>Sun, 08 Jan 2017 12:04:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=110690#p110690</guid>
		</item>
	</channel>
</rss>
