<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: IfInString искать только целую строку]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=14314</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14314&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: IfInString искать только целую строку».]]></description>
		<lastBuildDate>Tue, 13 Nov 2018 06:01:17 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: IfInString искать только целую строку]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=129717#p129717</link>
			<description><![CDATA[<p>Лучше использовать регулярное выражение:<br /></p><div class="codebox"><pre><code>MyFile := &quot;file.txt&quot;
FileAppend, `naaa, % MyFile
FileRead, filetext, % MyFile
test := &quot;aaa&quot;
res := RegExMatch(filetext, &quot;m`a)^\Q&quot; . test . &quot;\E$&quot;)
MsgBox, % &quot;Строка &quot; . (res ? &quot;&quot; : &quot;не &quot;) . &quot;найдена&quot;

test := &quot;aa&quot;
res := RegExMatch(filetext, &quot;m`a)^\Q&quot; . test . &quot;\E$&quot;)
MsgBox, % &quot;Строка &quot; . (res ? &quot;&quot; : &quot;не &quot;) . &quot;найдена&quot;
Return   
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 13 Nov 2018 06:01:17 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=129717#p129717</guid>
		</item>
		<item>
			<title><![CDATA[AHK: IfInString искать только целую строку]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=129710#p129710</link>
			<description><![CDATA[<p>Как заставить IfInString искать только совпадение целой строки?<br />То есть, ввожу в файл aaa<br />ищу aa<br />он выдает &quot;есть&quot;<br /></p><div class="codebox"><pre><code>
MyFile = file.txt
	FileRead, filetext, %MyFile%
	AAA = %Clipboard%
	IfInString, filetext, %AAA%
	{
		MsgBox, It&#039;sInFile
	} Else {
		FileAppend, % (filetext=&quot;&quot; ? &quot;&quot; : &quot;`n&quot;) . AAA, %MyFile%
		MsgBox, NowInFile
	}
	Return	
</code></pre></div><p>Пробовал делать &quot;AAA = %Clipboard%`n&quot; всегда пишет &quot;нету&quot;<br />Или он так не может и надо юзать что то сложнее?<br />PS или можно еще как то лучше??</p>]]></description>
			<author><![CDATA[null@example.com (Gh0sTG0)]]></author>
			<pubDate>Mon, 12 Nov 2018 19:48:48 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=129710#p129710</guid>
		</item>
	</channel>
</rss>
