<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Форум QUIK [тема: Работа со строками LUA]</title>
		<link>http://forum.quik.ru</link>
		<description>Новое в теме Работа со строками LUA форума  на сайте Форум QUIK [forum.quik.ru]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Fri, 10 Apr 2026 19:03:10 +0300</pubDate>
		<item>
			<title>Работа со строками LUA</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message34785/topic4072/">Работа со строками LUA</a></b> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Удалить все такие подстроки:<br />
====code====
<pre>
local str = "Here it is not necessary to remove&#91;it should be removed&#93; this is also not necessary &#91;kasjdhkjadhkajsh&#93;to (sdlfjsdlk!@kdlsaj) remove"
print("origin str: ",str)
str = str:gsub("%&#91;&#91;^&#93;&#93;*%&#93;",""):gsub("%(&#91;^)&#93;*%)","") -- remove all occurencies of &#91;substr&#93; and (substr)
print("gsubed str: ",str)
</pre>
=============
<br />out:<br />D:\lua\tmp&gt;lua tmp_20181112.lua<br />origin str: &nbsp; &nbsp; Here it is not necessary to remove[it should be removed] this is also not necessary [kasjdhkjadhkajsh]to (sdlfjsdlk!@kdlsaj) remove<br />gsubed str: &nbsp; &nbsp; Here it is not necessary to remove this is also not necessary to remove <br />
			<i>12.11.2018 06:41:50, vgi.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message34785/topic4072/</link>
			<guid>http://forum.quik.ru/messages/forum10/message34785/topic4072/</guid>
			<pubDate>Mon, 12 Nov 2018 06:41:50 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Работа со строками LUA</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message34784/topic4072/">Работа со строками LUA</a></b> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			local a,b = string.match(str,&quot;(.-%&#91;).-(%&#93;.*)&quot;)<br />local result = a .. b<br /><br />соазу скажу, не проверял, но идея должна быть понятна. <br />
			<i>11.11.2018 23:37:08, s_mike@rambler.ru.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message34784/topic4072/</link>
			<guid>http://forum.quik.ru/messages/forum10/message34784/topic4072/</guid>
			<pubDate>Sun, 11 Nov 2018 23:37:08 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Работа со строками LUA</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message34783/topic4072/">Работа со строками LUA</a></b> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			<p></p>Попробуй так
====code====
<pre>line = "Here it is not necessary to remove&#91;it should be removed&#93;this is also not necessary to remove";
 s1 = "(%&#91;)";
 s2 = "(%&#93;)";
 
&nbsp;&nbsp;point1 = string.find(line,s1);
&nbsp;&nbsp;point2 = string.find(line,s2);
&nbsp;&nbsp;point3 = string.len(line);
 
&nbsp;&nbsp;finishline = string.sub(line,1,point1 - 1)..string.sub(line,point2 + 1,point3);</pre>
=============
<p></p> <br />
			<i>11.11.2018 21:46:07, Игорь Б.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message34783/topic4072/</link>
			<guid>http://forum.quik.ru/messages/forum10/message34783/topic4072/</guid>
			<pubDate>Sun, 11 Nov 2018 21:46:07 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Работа со строками LUA</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message34779/topic4072/">Работа со строками LUA</a></b> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Here it is not necessary to remove&#91;it should be removed&#93;this is also not necessary to remove(it should be removed)<br /><br />на выходе надо получить вот такие строки<br />
====code====
<pre>Here it is not necessary to removethis is also not necessary to remove&nbsp;&nbsp;
 Here it is not necessary to removethis is also not necessary to remove</pre>
=============
<br />В скобках может быть что угодно <br />
			<i>10.11.2018 22:33:51, Archie_.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message34779/topic4072/</link>
			<guid>http://forum.quik.ru/messages/forum10/message34779/topic4072/</guid>
			<pubDate>Sat, 10 Nov 2018 22:33:51 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Работа со строками LUA</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message34778/topic4072/">Работа со строками LUA</a></b> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Привет!<br />Ребят, подскажите пожалуйста, кто знает, как удалить часть строки<br />то есть: есть строка и в ней есть часть в квадратных скобках и/или в круглых скобках и надо удалить то что в скобках и скобки тоже<br />
====code====
<pre>Here it is not necessary to remove&#91;it should be removed&#93;this is also not necessary to remove&nbsp;&nbsp; 
Here it is not necessary to remove&#91;it should be removed&#93;this is also not necessary to remove
</pre>
============= <br />
			<i>10.11.2018 22:30:13, Archie_.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message34778/topic4072/</link>
			<guid>http://forum.quik.ru/messages/forum10/message34778/topic4072/</guid>
			<pubDate>Sat, 10 Nov 2018 22:30:13 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
	</channel>
</rss>
