<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Вывод текста в  RegExMatch]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12467&amp;type=atom" />
	<updated>2017-02-19T17:59:02Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12467</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод текста в  RegExMatch]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112869#p112869" />
			<content type="html"><![CDATA[<p><a href="https://myrusakov.ru/php-regexp-greedy.html">Жадные и ленивые квантификаторы в регулярных выражениях.</a></p>]]></content>
			<author>
				<name><![CDATA[red2881]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30934</uri>
			</author>
			<updated>2017-02-19T17:59:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112869#p112869</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод текста в  RegExMatch]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112806#p112806" />
			<content type="html"><![CDATA[<p><strong>red2881</strong>, огромное спасибо!<br />Понимаю, что данная тема была неоднократно рассмотрена на форуме, но хотелось получить наглядный пример на своем материале.<br />Еще раз спасибо - все работает как надо!</p>]]></content>
			<author>
				<name><![CDATA[Veranda]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33724</uri>
			</author>
			<updated>2017-02-18T20:06:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112806#p112806</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод текста в  RegExMatch]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112797#p112797" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>FoundPos := RegExMatch(str, &quot;&lt;div class=&quot;&quot;article__header__title js-slide-title&quot;&quot;&gt;([^\r\n]*)&lt;/div&gt;&quot;, SubPat)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[red2881]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30934</uri>
			</author>
			<updated>2017-02-18T18:21:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112797#p112797</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод текста в  RegExMatch]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112781#p112781" />
			<content type="html"><![CDATA[<p>Спасибо, <strong>Malcev</strong>!<br />Только сейчас обнаружил: у меня в первоначальном варианте кода строка </p><div class="codebox"><pre><code>FoundPos := RegExMatch(str, &quot;&lt;div class=&quot;article__header__title js-slide-title&quot;&gt;(.*)&lt;/div&gt;, SubPat)</code></pre></div><p>стояла без закрывающих кавычек. В этом, видимо, определенная проблема была.</p><p>UPD:: код поправил, но в настоящий момент вместо вывода в <br /></p><div class="codebox"><pre><code>MsgBox, %SubPat1%</code></pre></div><p> текста &quot;SpaceX перенесла полет на Марс на 2020 год&quot; - выводится кусок кода страницы. Как решить данную проблему?</p>]]></content>
			<author>
				<name><![CDATA[Veranda]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33724</uri>
			</author>
			<updated>2017-02-18T12:31:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112781#p112781</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Вывод текста в  RegExMatch]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112780#p112780" />
			<content type="html"><![CDATA[<p>Кавычки экранируются дублированием - &quot;&quot;.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-02-18T12:22:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112780#p112780</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Вывод текста в  RegExMatch]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=112779#p112779" />
			<content type="html"><![CDATA[<p>Доброго дня, уважаемые форумчане!</p><div class="codebox"><pre><code>
url := &quot;http://www.rbc.ru/rbcfreenews/58a830959a79470c39562c7a?from=newsfeed&quot;
HTTP := ComObjCreate(&quot;WinHttp.WinHttpRequest.5.1&quot;)
HTTP.Open(&quot;GET&quot;, url, true)
HTTP.SetRequestHeader(&quot;User-Agent&quot;, &quot;Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/7.0)&quot;)
HTTP.Send()
HTTP.WaitForResponse() 
; msgbox % Http.responseText

Str = % Http.responseText

FoundPos := RegExMatch(str, &quot;&lt;div class=&quot;&quot;article__header__title js-slide-title&quot;&quot;&gt;(.*)&lt;/div&gt;&quot;, SubPat)  ; ни черта не находит!

 
 MsgBox, %SubPat1%
 
f3:: reload
</code></pre></div><p>Не мог получить значение из &lt;div class=&quot;article__header__title js-slide-title&quot;&gt;SpaceX перенесла полет на Марс на 2020 год&lt;/div&gt;</p><br /><p>Прошу помочь разобраться. <img src="//forum.script-coding.com/img/smilies/roll.png" width="15" height="15" /></p><p>Версия AHK: v1.1.24.05 - February 3, 2017</p>]]></content>
			<author>
				<name><![CDATA[Veranda]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33724</uri>
			</author>
			<updated>2017-02-18T12:13:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=112779#p112779</id>
		</entry>
</feed>
