<?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=14260&amp;type=atom" />
	<updated>2018-10-19T15:44:51Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14260</id>
		<entry>
			<title type="html"><![CDATA[AHK: Регулярное выражение]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=129313#p129313" />
			<content type="html"><![CDATA[<p><a href="http://uploads.ru/dxDJ5.png"><span class="postimg"><img src="http://s5.uploads.ru/t/dxDJ5.png" alt="http://s5.uploads.ru/t/dxDJ5.png" /></span></a></p><div class="codebox"><pre><code>oWhr := ComObjCreate(&quot;WinHttp.WinHttpRequest.5.1&quot;)
oWhr.Open(&quot;GET&quot;, &quot;http://atisot.ru/top/&quot;, false)
oWhr.Send()
html := oWhr.ResponseText
;MsgBox % html

RegExMatch(html, &quot;&lt;td&gt;Сегодня, (.*?)&lt;/td&gt;&quot;, kass)
MsgBox, %kass1%
MsgBox, % kass
</code></pre></div><p>Выдаёт время из первого блока (td class=&quot;leader&quot;)<br /></p><div class="codebox"><pre><code>RegExMatch(html, &quot;&lt;td class=&quot;&quot;pos&quot;&quot;&gt;(.*?)&lt;/td&gt;&quot;, kass)</code></pre></div><p>Выдаёт номер места всё того же td class=&quot;leader&quot;</p><p>Я начал думать, как выстроить регулярку таким образом, чтобы она искала время, исходя из № места.<br /></p><div class="codebox"><pre><code>RegExMatch(html, &quot;&lt;td class=&quot;&quot;pos&quot;&quot;&gt;(5)&lt;/td&gt;&quot;, kass)</code></pre></div><p>Выдаёт номер места № 5. Теперь нужно лишь написать продолжение, которое и будет искать время по № места.<br />Попробовал так:<br /></p><div class="codebox"><pre><code>RegExMatch(html, &quot;&lt;td class=&quot;&quot;pos&quot;&quot;&gt;(5)&lt;/td&gt;.*?&lt;td&gt;Сегодня, (.*?)&lt;/td&gt;&quot;, kass)</code></pre></div><p>Не работает,&nbsp; почему? -_-</p>]]></content>
			<author>
				<name><![CDATA[kangar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39404</uri>
			</author>
			<updated>2018-10-19T15:44:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=129313#p129313</id>
		</entry>
</feed>
