<?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/20602" />

	<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>2019-03-04T11:23:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2019-03-04T11:23:42-04:00</updated>

		<published>2019-03-04T11:23:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107517#p107517</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107517#p107517"/>
		<title type="html"><![CDATA[Re: string containing * (asterisk)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107517#p107517"><![CDATA[
<blockquote class="uncited"><div>...<br><br>Am trying to detect strings with * (asterisks) in them to do (something)...<br><br>Have tied:<br><div class="codebox"><p>Code: </p><pre><code>if {[string match "{*\*}*" $tt]}...</code></pre></div></div></blockquote>Playing in partyline, I first did:<div class="codebox"><p>Code: </p><pre><code>.set testtext "bla bla * bla"</code></pre></div>Next:<div class="codebox"><p>Code: </p><pre><code>&lt;myhandle&gt; .tcl string match {*\**} $testtext&lt;botnick&gt; Tcl: 1</code></pre></div>Compared to yours,  all I did was move the last asterisk to be inside the curly braces.<br><br>For the heck of it, I then played with it some more:<br><div class="codebox"><p>Code: </p><pre><code>&lt;myhandle&gt; .tcl string match {*\* *} $testtext&lt;botnick&gt; Tcl: 1&lt;myhandle&gt; .tcl string match {* \* *} $testtext&lt;botnick&gt; Tcl: 1&lt;myhandle&gt; .tcl string match {* \*  *} $testtext&lt;botnick&gt; Tcl: 0&lt;myhandle&gt; .tcl string match {* \* *} $testtext&lt;botnick&gt; Tcl: 1</code></pre></div>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Mar 04, 2019 11:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzNZ]]></name></author>
		<updated>2019-03-04T02:05:03-04:00</updated>

		<published>2019-03-04T02:05:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107516#p107516</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107516#p107516"/>
		<title type="html"><![CDATA[string containing * (asterisk)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107516#p107516"><![CDATA[
Thanks for the reply...will give it a go!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10525">NewzNZ</a> — Mon Mar 04, 2019 2:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2019-03-04T01:57:39-04:00</updated>

		<published>2019-03-04T01:57:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107515#p107515</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107515#p107515"/>
		<title type="html"><![CDATA[string containing * (asterisk)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107515#p107515"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>% set text "* bla bla * bla"* foo% string first * $text0% set text "bla bla * bla"bla bla * bla% string first * $text8</code></pre></div>as you can see it returns the position of first match.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Mar 04, 2019 1:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzNZ]]></name></author>
		<updated>2019-03-03T20:34:05-04:00</updated>

		<published>2019-03-03T20:34:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107507#p107507</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107507#p107507"/>
		<title type="html"><![CDATA[string containing * (asterisk)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107507#p107507"><![CDATA[
Hi there<br><br>Am trying to detect strings with * (asterisks) in them to do (something)...<br><br>Have tied:<br><div class="codebox"><p>Code: </p><pre><code>if {[string match "{*\*}*" $tt]}andif {[string match "*\**" $tt]}</code></pre></div>...but no luck. Any help would be appreciated!<br>Cheers<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10525">NewzNZ</a> — Sun Mar 03, 2019 8:34 pm</p><hr />
]]></content>
	</entry>
	</feed>
