<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/5356" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-08-25T13:27:32-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/5356</id>

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-08-25T13:27:32-04:00</updated>

		<published>2003-08-25T13:27:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25636#p25636</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25636#p25636"/>
		<title type="html"><![CDATA[strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25636#p25636"><![CDATA[
Also, do consult the <a href="http://tcl.activestate.com/man/tcl8.2.3/TclCmd/regsub.htm" class="postlink">regsub manual</a>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Aug 25, 2003 1:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-08-24T22:55:36-04:00</updated>

		<published>2003-08-24T22:55:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25613#p25613</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25613#p25613"/>
		<title type="html"><![CDATA[strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25613#p25613"><![CDATA[
<blockquote class="uncited"><div>Thanks strikelight.<br><br>Would you care to expand on the subject?<br><br>Sounds like a good candidate for the FAQ section.</div></blockquote>  Nothing I could say that hasn't already been said here in the forum,<br>and also @ <a href="http://www.peterre.com/characters.html" class="postlink">http://www.peterre.com/characters.html</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sun Aug 24, 2003 10:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-08-24T21:46:03-04:00</updated>

		<published>2003-08-24T21:46:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25612#p25612</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25612#p25612"/>
		<title type="html"><![CDATA[strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25612#p25612"><![CDATA[
Thanks strikelight.<br><br>Would you care to expand on the subject?<br><br>Sounds like a good candidate for the FAQ section.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Sun Aug 24, 2003 9:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-08-24T15:17:41-04:00</updated>

		<published>2003-08-24T15:17:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25598#p25598</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25598#p25598"/>
		<title type="html"><![CDATA[strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25598#p25598"><![CDATA[
<blockquote class="uncited"><div>this might work:<br><div class="codebox"><p>Code: </p><pre><code>set input "Help" set c_list "OperHelp Help Mirc"proc update:list {} {  global input c_list  if {[string match -nocase "$input" "$c_list"]} {    set position [lsearch -exact $c_list $input]    set c_list [lreplace $c_list $position $position]  }}</code></pre></div>give it a try</div></blockquote>Since we are talking about <strong class="text-strong">strings</strong> this is NOT the way to go..<br>As mentioned numerous times on the forum, you can NOT treat strings as lists and visa versa without first doing conversions.<br><br>If there is particular text you are trying to remove from a <em class="text-italics">string</em>, might I suggest either using <strong class="text-strong">regsub</strong> or <strong class="text-strong">string map</strong>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sun Aug 24, 2003 3:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-08-24T12:57:58-04:00</updated>

		<published>2003-08-24T12:57:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25587#p25587</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25587#p25587"/>
		<title type="html"><![CDATA[strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25587#p25587"><![CDATA[
First get it's position in the list with <em class="text-italics">lsearch</em> then remove it with <em class="text-italics">lreplace</em>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Aug 24, 2003 12:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-08-24T12:23:33-04:00</updated>

		<published>2003-08-24T12:23:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25586#p25586</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25586#p25586"/>
		<title type="html"><![CDATA[strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25586#p25586"><![CDATA[
this might work:<br><div class="codebox"><p>Code: </p><pre><code>set input "Help" set c_list "OperHelp Help Mirc"proc update:list {} {  global input c_list  if {[string match -nocase "$input" "$c_list"]} {    set position [lsearch -exact $c_list $input]    set c_list [lreplace $c_list $position $position]  }}</code></pre></div>give it a try<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Sun Aug 24, 2003 12:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Snapple]]></name></author>
		<updated>2003-08-24T10:44:55-04:00</updated>

		<published>2003-08-24T10:44:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25580#p25580</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25580#p25580"/>
		<title type="html"><![CDATA[thanks... but]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25580#p25580"><![CDATA[
I already used string last... which working just fine, thanks.<br>hmm<br>I have another question, how can I remove from a string a part of it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3524">Snapple</a> — Sun Aug 24, 2003 10:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-08-24T10:25:58-04:00</updated>

		<published>2003-08-24T10:25:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25577#p25577</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25577#p25577"/>
		<title type="html"><![CDATA[strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25577#p25577"><![CDATA[
Command: string match<br><br>Purpose: Test whether a given string matches a specified glob-style pattern.<br> <br>Command Syntax: string match -nocase pattern string<br> <br>Return Value: 1 if string matches pattern; 0 if not<br><br><br>The string match subcommand tests to see whether a <br>given string matches a specified glob-style pattern.<br>If you specify the -nocase option, the match is evaluated without regard to case. <br><br>If you don't use this option, you may end up with a different result than you intended. <br>For example, the character "_" lies between the upper-case and <br>lower-case ASCII letters in the Unicode collating sequence.<br><br>So if your pattern is [A-z], the underscore character will match the pattern. <br>If you intend to match only an alphabetic character, <br>you should specify -nocase and a pattern of [a-z]. <br><br>Here's an example: <div class="codebox"><p>Code: </p><pre><code>set input "Help" set c_list "OperHelp Help Mirc"  if {[string match -nocase "$input" "$c_list"]} {</code></pre></div>Would return true   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Sun Aug 24, 2003 10:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-08-23T03:06:25-04:00</updated>

		<published>2003-08-23T03:06:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25517#p25517</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25517#p25517"/>
		<title type="html"><![CDATA[strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25517#p25517"><![CDATA[
Consult the <a href="http://tcl.activestate.com/man/tcl8.2.3/TclCmd/string.htm" class="postlink">string</a> manual page.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Aug 23, 2003 3:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Snapple]]></name></author>
		<updated>2003-08-23T02:28:17-04:00</updated>

		<published>2003-08-23T02:28:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25516#p25516</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25516#p25516"/>
		<title type="html"><![CDATA[strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25516#p25516"><![CDATA[
hmm<br>is there a command to do like in mirc if (%var isin %var2)....<br>I mean, for example %var will be #Help<br>and %var2 will be #OperHelp #Help #Mirc<br>then it will return true<br>anyone know?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3524">Snapple</a> — Sat Aug 23, 2003 2:28 am</p><hr />
]]></content>
	</entry>
	</feed>
