<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; Помощь с RegExMatch]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=11451</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=11451&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Помощь с RegExMatch».]]></description>
		<lastBuildDate>Mon, 28 Mar 2016 13:32:49 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Помощь с RegExMatch]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=102064#p102064</link>
			<description><![CDATA[<div class="codebox"><pre><code>lines=
Loop,Read,%a_scriptdir%\1.txt
{
  if !a_loopreadline
    continue
  lines++
  if lines=2
  {
    text:=a_loopreadline
    RegExMatch(text, &quot;\[\d+:\d+:\d+]\sАдминистратор .*?\[([0-9]+)] для .*?\[([0-9]+)]:\s(.*)&quot;, Out)
    break
  }
}
MsgBox, %Out1% | %Out2% | %Out3%
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Mon, 28 Mar 2016 13:32:49 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=102064#p102064</guid>
		</item>
		<item>
			<title><![CDATA[Помощь с RegExMatch]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=102057#p102057</link>
			<description><![CDATA[<p>Здравствуйте. У меня есть код:</p><div class="codebox"><pre><code>FileRead, Str, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
StringReplace, Str, Str, `r`n, `n, 1
StringReplace, Str, Str, `r, `n, 1
RegExMatch(&quot;`n&quot; Str &quot;`n&quot;, &quot;i).*\n\[\d+:\d+:\d+]\s*\Администратор .*?\[([0-9]+)\] для .*?\[([0-9]+)\]:\s*(?P&lt;TEXT&gt;.*)\n, Out)
MsgBox, %Out1% | %Out1% | %OutTEXT%
return
</code></pre></div><p>То что находится например в chatlog.txt<br /></p><div class="codebox"><pre><code>

[13:30:14] Artem_Pavlowich[228] : Ку ку
[13:30:16] Администратор Vasya_Pypkin[111] для Pety_Pavlow[333]: Этот текст в перменной
[13:30:18] Sasha_Krasava[444] : {FFCD00}Администраторы, в gps гостиница LV где?
</code></pre></div><p>Мне нужно, чтобы брало текст только с 2 строки, но почему-то скрипт в перменную кидает весь текст, что с низу.<br />У меня получается вот так:<br /></p><div class="codebox"><pre><code>111 | 333 | Этот текст в перменной
[13:30:18] Sasha_Krasava[444] : {FFCD00}Администраторы, в gps гостиница LV где?</code></pre></div><p> <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (kangaroooo)]]></author>
			<pubDate>Mon, 28 Mar 2016 11:32:23 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=102057#p102057</guid>
		</item>
	</channel>
</rss>
