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

	<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>2007-09-18T02:28:22-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-09-18T02:28:22-04:00</updated>

		<published>2007-09-18T02:28:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76006#p76006</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76006#p76006"/>
		<title type="html"><![CDATA[How to acquire the number of characters minus color codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76006#p76006"><![CDATA[
If $text is "\0034,1\xb0\xbaO\xa7\0030 ~ ~ ~ ~ ~ $botnick command help ~ ~ ~ ~ ~"<br><br>then:<br><div class="codebox"><p>Code: </p><pre><code>#In eggdrop 1.6.17 and later, you can use:set text [stripcodes bcruag $text]#If you want to count spaces as charactersset textlen [string length $text]#If you don't want to count spaces as charactersset textlen [string length [string map {" " ""} $text]]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Sep 18, 2007 2:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-09-18T00:09:19-04:00</updated>

		<published>2007-09-18T00:09:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76004#p76004</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76004#p76004"/>
		<title type="html"><![CDATA[How to acquire the number of characters minus color codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76004#p76004"><![CDATA[
Of course there's a way, strip off the stuff you don't want with either regsub or the stripcodes commands then use string length<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Tue Sep 18, 2007 12:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[droolin]]></name></author>
		<updated>2007-09-17T20:26:24-04:00</updated>

		<published>2007-09-17T20:26:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75991#p75991</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75991#p75991"/>
		<title type="html"><![CDATA[How to acquire the number of characters minus color codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75991#p75991"><![CDATA[
Is there a way to count the number of characters in a string minus the hex codes for colors?<br><blockquote class="uncited"><div>"\0034,1\xb0\xbaO\xa7\0030  ~ ~ ~ ~ ~  $botnick command help ~ ~ ~ ~ ~ "</div></blockquote>If I do a string length on that, that returns the total count of characters including the hex values and such.  Is there any way to only only get a length of printable characters including the subst value of $botnick.<br><br>drool<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3562">droolin</a> — Mon Sep 17, 2007 8:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
