<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Поиск текста по сайту. Использование RegExReplace]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12677&amp;type=atom" />
	<updated>2017-05-15T15:15:34Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12677</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск текста по сайту. Использование RegExReplace]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115870#p115870" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>VersionUpdate := RegExReplace(TextProfile, &quot;.+\[VersionVKM](.+)\[VersionVKM].+&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-05-15T15:15:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115870#p115870</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск текста по сайту. Использование RegExReplace]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115866#p115866" />
			<content type="html"><![CDATA[<p>Моя страница в вк <a href="https://vk.com/sememix">https://vk.com/sememix</a>.<br />В постах есть текст [VersionVKM]123[VersionVKM], мне из него нужно получить, то самое 123, а текст в скобочках вписан для удобства определения.</p>]]></content>
			<author>
				<name><![CDATA[sememix]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33892</uri>
			</author>
			<updated>2017-05-15T14:52:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115866#p115866</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск текста по сайту. Использование RegExReplace]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115855#p115855" />
			<content type="html"><![CDATA[<p>VersionUpdate - это то, что я думаю, да?<br /></p><div class="codebox"><pre><code>VERSION_FromScript_REGEX := &quot;Oi)(?:^|\R);\s*ver\w*\s*=?\s*(\d+(?:\.\d+)?)(?:$|\R)&quot;
RegExMatch(&quot;; ver 1.01&quot;, VERSION_FromScript_REGEX, matchObj)
MsgBox % ver := matchObj.1</code></pre></div>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2017-05-14T18:07:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115855#p115855</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск текста по сайту. Использование RegExReplace]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115851#p115851" />
			<content type="html"><![CDATA[<p>Я новенький особо не разбираюсь , но вроде сохранять нужно это : тег([^тег]*)тег .<br />Так сказать текст между тегов не содержащий этих самых тегов , хотя откуда мне знать , я даже не знаю что такое тег.)))</p>]]></content>
			<author>
				<name><![CDATA[shahlik002]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=37352</uri>
			</author>
			<updated>2017-05-14T17:32:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115851#p115851</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск текста по сайту. Использование RegExReplace]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115850#p115850" />
			<content type="html"><![CDATA[<p><strong>sememix</strong><br />RegEx не правильно используешь , он тебе сохраняет в переменную все от первого до последнего тега.</p>]]></content>
			<author>
				<name><![CDATA[shahlik002]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=37352</uri>
			</author>
			<updated>2017-05-14T17:28:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115850#p115850</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Поиск текста по сайту. Использование RegExReplace]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=115849#p115849" />
			<content type="html"><![CDATA[<p>На странице есть текст формата [тег]текст[тег]. Для поиска написал такое...</p><br /><br /><div class="codebox"><pre><code>
url = сайт
QueryResponseWebsite(url)
TextProfile := AnswerWebsite

VersionUpdate := RegExReplace(TextProfile, &quot;[тег](.*)[тег]&quot;)

QueryResponseWebsite(url) ; На вход получает URL. Открывает ссылку URL и в переменную &quot;AnswerWebsite&quot; сохраняет ответ с сайта.
{
	global AnswerWebsite
	ComObjError(False) 
	HTTP := ComObjCreate(&quot;WinHttp.WinHttpRequest.5.1&quot;) 
	HTTP.SetTimeouts(6000,6000,6000,6000)
	HTTP.Open(&quot;GET&quot;,url) 
	HTTP.Send() 
	AnswerWebsite := HTTP.ResponseText
}
</code></pre></div><p>В итоге получаю не наш &quot;текст&quot;, а весь код страницы. Что я делаю не так?</p>]]></content>
			<author>
				<name><![CDATA[sememix]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33892</uri>
			</author>
			<updated>2017-05-14T17:19:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=115849#p115849</id>
		</entry>
</feed>
