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

	<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>2005-05-14T19:05:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-05-14T19:04:14-04:00</updated>

		<published>2005-05-14T19:04:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49468#p49468</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49468#p49468"/>
		<title type="html"><![CDATA[counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49468#p49468"><![CDATA[
Oh yeah, the '-all' switch (sorry for my stupidity).<br><br>for the second one, you can use:<div class="codebox"><p>Code: </p><pre><code>set total_characters [regexp -all -nocase {[A-Z]|[0-9]} $text]</code></pre></div>or you can remove the -nocase switch and use:<div class="codebox"><p>Code: </p><pre><code>set total_characters [regexp -all {[A-z]|[0-9]} $text]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat May 14, 2005 7:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-05-14T17:21:48-04:00</updated>

		<published>2005-05-14T17:21:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49467#p49467</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49467#p49467"/>
		<title type="html"><![CDATA[counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49467#p49467"><![CDATA[
These 2 seem to work:<br><div class="codebox"><p>Code: </p><pre><code>&lt;awyeah&gt; .tcl regexp -all {[A-Z]} "QWRDFGDSGER86574575HDFGF"&lt;adapter&gt; Tcl: 16&lt;awyeah&gt; .tcl regexp -all {[0-9]} "QWRDFGDSGER86574575HDFGF"&lt;adapter&gt; Tcl: 8</code></pre></div>This one doesn't<br><div class="codebox"><p>Code: </p><pre><code>&lt;awyeah&gt; .tcl regexp -all -nocase {[A-Z][0-9]} "QWRDFGDSGER86574575HDFGF"&lt;adapter&gt; Tcl: 1#But you can count [A-Z] and [0-9] seperately above and add them with expr.set total_characters [expr [regexp -all {[A-Z]} $text] + [regexp -all {[0-9]} $text]]</code></pre></div>And this works too:<div class="codebox"><p>Code: </p><pre><code>&lt;awyeah&gt; .tcl regexp -all {:\)} "QWRDFGDSGER86574575HDFGF:):):)"&lt;adapter&gt; Tcl: 3</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat May 14, 2005 5:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-05-14T19:05:04-04:00</updated>

		<published>2005-05-14T16:38:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49466#p49466</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49466#p49466"/>
		<title type="html"><![CDATA[counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49466#p49466"><![CDATA[
Edit: Bogus info.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat May 14, 2005 4:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-05-14T09:37:52-04:00</updated>

		<published>2005-05-14T09:37:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49457#p49457</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49457#p49457"/>
		<title type="html"><![CDATA[counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49457#p49457"><![CDATA[
I don't beleive you can find a counter, but here a simple examples:<br><div class="codebox"><p>Code: </p><pre><code>#This will count total characters than alphabets and words including them alsoset total_characters [string length [string map {" " ""} $text]]set total_characters [string length [string trim $text]]or#This will only count total alphabets and wordsset total_characters [regexp -all -nocase {[A-Z][0-9]} $text]set total_alphabets [regexp -all -nocase {[A-Z]} $text]set total_numbers [regexp -all {[0-9]} $text]set total_words [llength $text]#To count smiliesset total_smiles [regexp -all {:)} $text]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat May 14, 2005 9:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sith]]></name></author>
		<updated>2005-05-13T15:36:44-04:00</updated>

		<published>2005-05-13T15:36:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49445#p49445</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49445#p49445"/>
		<title type="html"><![CDATA[counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49445#p49445"><![CDATA[
Where can I find a counter for counting number of words letters, smilies which was sent on the chanel by every user?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6219">sith</a> — Fri May 13, 2005 3:36 pm</p><hr />
]]></content>
	</entry>
	</feed>
