<?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="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12548&amp;type=atom" />
	<updated>2017-03-21T01:06:11Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12548</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выделить ключ из текста с помощью регулярного выражения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113888#p113888" />
			<content type="html"><![CDATA[<p>Т.е. &quot;Да нет&quot;? Стал (до публикации 7-го поста), значит, учитывает. А то, что с подсказки, написано в скобках. Или слово &quot;согласие&quot; требует дополнительного разжёвывания? o_0</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-03-21T01:06:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113888#p113888</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выделить ключ из текста с помощью регулярного выражения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113885#p113885" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Flasher пишет:</cite><blockquote><p>Перенос строк мой учитывает</p></blockquote></div><p>Да нет, он вдруг <em>стал</em> учитывать после моей подсказки. И без сообщения о редактировании.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-03-21T00:19:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113885#p113885</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выделить ключ из текста с помощью регулярного выражения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113880#p113880" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>но не учитывает то, что ты привёл.</p></blockquote></div><p>&gt;&gt;&gt;</p><div class="quotebox"><cite>Flasher пишет:</cite><blockquote><p>Как раз <strong>учитывает. Кучу ненужного.</strong></p></blockquote></div><p>Почему так трудно просто <a href="http://forum.script-coding.com/viewtopic.php?pid=113874#p113874">проверить</a>? Он учитывает и кириллицу и кучу всякого другого, отличного от букв и цифр, включая приведённое мной.<br />Перенос строк мой учитывает (см. согласие выше).</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-03-20T22:50:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113880#p113880</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выделить ключ из текста с помощью регулярного выражения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113879#p113879" />
			<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>2017-03-20T22:38:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113879#p113879</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выделить ключ из текста с помощью регулярного выражения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113878#p113878" />
			<content type="html"><![CDATA[<p>Как раз учитывает. Кучу ненужного. В отличии от моего. Выше привёл уточнение.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-03-20T22:26:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113878#p113878</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выделить ключ из текста с помощью регулярного выражения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113877#p113877" />
			<content type="html"><![CDATA[<p>А, так он неправильный, потому что не учитывает то, что ты привёл? <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-03-20T22:04:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113877#p113877</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выделить ключ из текста с помощью регулярного выражения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113876#p113876" />
			<content type="html"><![CDATA[<p>Разве то, что я привёл в коде вместо ключа, похоже на кириллицу?</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-03-20T21:38:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113876#p113876</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выделить ключ из текста с помощью регулярного выражения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113875#p113875" />
			<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>2017-03-20T21:23:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113875#p113875</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выделить ключ из текста с помощью регулярного выражения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113874#p113874" />
			<content type="html"><![CDATA[<p>Насчёт <strong>s)</strong> согласен, насчёт кириллицы по-прежнему - нет.<br />АБВГД-ЕЁЖЗИ-КЛМНО - это не ключ, а скорее отсебятина.<br />Если так мыслить, то логично было бы и кучу юникодных символов учесть, а то и там не подходит:<br /></p><div class="codebox"><pre><code>Text := &quot;БЛАБЛА`r`nБЛАБЛА ˬʼˮª²-³º¼½¾-ǀǁǂǃʹ XXXXX-YYYYY-ZZZZZ БЛАБЛА`r`nБЛАБЛА&quot;
MsgBox % RegExReplace(Text, &quot;s)(*UCP).*?(\w{5}-\w{5}-\w{5}).*&quot;, &quot;$1&quot;)</code></pre></div><p>Только убрав (*UCP), выдаст XXXXX-YYYYY-ZZZZZ.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-03-20T20:10:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113874#p113874</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выделить ключ из текста с помощью регулярного выражения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113873#p113873" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><p><strong>Flasher</strong>, если в ключе будет кириллица, то ваш код не подойдет.</p></blockquote></div><p>Да не, и без того не подойдёт. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br /></p><div class="codebox"><pre><code>Text := &quot;БЛАБЛА`r`nБЛАБЛА XXXXX-YYYYY-ZZZZZ БЛАБЛА`r`nБЛАБЛА&quot;

MsgBox % RegExReplace(Text, &quot;.*?(\w{5}-\w{5}-\w{5}).*&quot;, &quot;$1&quot;)</code></pre></div><p>Правильно так:<br /></p><div class="codebox"><pre><code>Text =
(
БЛАБЛА
БЛАБЛА АБВГД-ЕЁЖЗИ-КЛМНО БЛАБЛА
БЛАБЛА
)
MsgBox % RegExReplace(Text, &quot;s)(*UCP).*?(\w{5}-\w{5}-\w{5}).*&quot;, &quot;$1&quot;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-03-20T19:56:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113873#p113873</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выделить ключ из текста с помощью регулярного выражения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113872#p113872" />
			<content type="html"><![CDATA[<p>Я тоже не припоминаю, но в принципе-то они могут быть.<br />Просто предупредил топикстартера.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-03-20T18:25:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113872#p113872</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выделить ключ из текста с помощью регулярного выражения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113871#p113871" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong><br />Пример ключа в кириллице приведите. Я таких что-то не припомню.<br />Да и латинские &#039;XYZ&#039; как бы намекают, что там не про неё.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-03-20T17:05:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113871#p113871</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выделить ключ из текста с помощью регулярного выражения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113870#p113870" />
			<content type="html"><![CDATA[<p><strong>Flasher</strong>, если в ключе будет кириллица, то ваш код не подойдет.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-03-20T17:04:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113870#p113870</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Выделить ключ из текста с помощью регулярного выражения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113865#p113865" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Text =
(
БЛАБЛА
БЛАБЛА XXXXX-YYYYY-ZZZZZ БЛАБЛА
БЛАБЛА
)
MsgBox % RegExReplace(Text, &quot;s).*?(\w{5}-\w{5}-\w{5}).*&quot;, &quot;$1&quot;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-03-20T12:11:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113865#p113865</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Выделить ключ из текста с помощью регулярного выражения]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=113864#p113864" />
			<content type="html"><![CDATA[<p>Нужно среди огромной кучи лишнего текста выделить ключ, вида XXXXX-YYYYY-ZZZZZ. Подскажите, кто знает.</p><div class="quotebox"><blockquote><p><span style="color: green"><strong>Модератор:</strong> Заголовок &quot;AHK: RegExMatch()&quot; исправлен на вменяемый. В следующий раз делайте это самостоятельно.</span></p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[sememix]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33892</uri>
			</author>
			<updated>2017-03-19T17:46:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=113864#p113864</id>
		</entry>
</feed>
