<?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=15191&amp;type=atom" />
	<updated>2020-02-18T14:43:24Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15191</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление не-буквенных символов из строки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137901#p137901" />
			<content type="html"><![CDATA[<p>Спасибо, так сделал —<br /></p><div class="codebox"><pre><code>text = 
(
 二世瀬川菊之丞 / 春章画 
аВёЁ
 [Segawa Kikunojō Ⅱ] : [estampe] / [Shunsyō a peint] 
)

msgbox % RemoveLetterAccents(text)

RemoveLetterAccents(text)
	{
	 static Array := { &quot;a&quot; : &quot;áàâǎăãảạäåāąấầẫẩậắằẵẳặǻ&quot;
	 , &quot;c&quot; : &quot;ćĉčċç&quot;
	 , &quot;d&quot; : &quot;ďđð&quot;
	 , &quot;e&quot; : &quot;éèêěĕẽẻėëēęếềễểẹệ&quot;
	 , &quot;g&quot; : &quot;ğĝġģ&quot;
	 , &quot;h&quot; : &quot;ĥħ&quot;
	 , &quot;i&quot; : &quot;íìĭîǐïĩįīỉịĵ&quot;
	 , &quot;k&quot; : &quot;ķ&quot;
	 , &quot;l&quot; : &quot;ĺľļłŀ&quot;
	 , &quot;n&quot; : &quot;ńňñņ&quot;
	 , &quot;o&quot; : &quot;óòŏôốồỗổǒöőõøǿōỏơớờỡởợọộ&quot;
	 , &quot;s&quot; : &quot;ṕṗŕřŗśŝšş&quot;
	 , &quot;t&quot; : &quot;ťţŧ&quot;
	 , &quot;u&quot; : &quot;úùŭûǔůüǘǜǚǖűũųūủưứừữửựụ&quot;
	 , &quot;w&quot; : &quot;ẃẁŵẅýỳŷÿỹỷỵ&quot;
	 , &quot;z&quot; : &quot;źžż&quot; }
	 
	 for k, v in Array
		{
		 StringUpper, VU, v
		 StringUpper, KU, k
		 text:=RegExReplace(text,&quot;[&quot; v &quot;]&quot;,k)
		 text:=RegExReplace(text,&quot;[&quot; VU &quot;]&quot;,KU)
		}
		text:=RegExReplace(text, &quot;[^а-яёА-ЯЁ&quot;&quot;№;:\.&lt;&gt;\{\}\[\]\?—=\!@#\$%\^&amp;\*\(\)_\+\|\\/\w\s]&quot;)
	 Return text
	}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-02-18T14:43:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137901#p137901</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удаление не-буквенных символов из строки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137897#p137897" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>text = 
(
&lt;dd&gt; 二世瀬川菊之丞 / 春章画 &lt;/dd&gt;
аВёЁ
&lt;dd&gt; [Segawa Kikunojō Ⅱ] : [estampe] / [Shunsyō a peint] &lt;/dd&gt;
)

MsgBox % RegExReplace(text, &quot;[^а-яёА-ЯЁ\w\s]&quot;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2020-02-18T13:47:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137897#p137897</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Удаление не-буквенных символов из строки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137895#p137895" />
			<content type="html"><![CDATA[<p>Как зачистить из переменной всё, кроме букв на основе латиницы и кириллицы?<br /></p><div class="codebox"><pre><code>
&lt;dd&gt; 二世瀬川菊之丞 / 春章画 &lt;/dd&gt;
&lt;dd&gt; [Segawa Kikunojō Ⅱ] : [estampe] / [Shunsyō a peint] &lt;/dd&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-02-18T13:16:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137895#p137895</id>
		</entry>
</feed>
