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

	<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>2004-06-15T13:17:27-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-06-15T13:17:27-04:00</updated>

		<published>2004-06-15T13:17:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37413#p37413</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37413#p37413"/>
		<title type="html"><![CDATA[How to catch all numbers in a string ???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37413#p37413"><![CDATA[
Who said that the code you have pasted is not correct? It is but is not what Friischling was looking for.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Jun 15, 2004 1:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-06-15T11:27:05-04:00</updated>

		<published>2004-06-15T11:27:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37407#p37407</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37407#p37407"/>
		<title type="html"><![CDATA[How to catch all numbers in a string ???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37407#p37407"><![CDATA[
Yeah sorry, that code I gave was to count<br>the numbers in a text, and place the total value<br>of numbers in a variable.<br><br>However, the link I supplied for reference and examples<br>is correct, and you can get an idea from that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Jun 15, 2004 11:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-06-15T11:17:26-04:00</updated>

		<published>2004-06-15T11:17:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37405#p37405</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37405#p37405"/>
		<title type="html"><![CDATA[How to catch all numbers in a string ???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37405#p37405"><![CDATA[
regexp = match a regular expression against a string<br>regsub = perform substitutions based on regular expression pattern matching<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Jun 15, 2004 11:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2004-06-15T01:57:07-04:00</updated>

		<published>2004-06-15T01:57:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37393#p37393</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37393#p37393"/>
		<title type="html"><![CDATA[How to catch all numbers in a string ???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37393#p37393"><![CDATA[
<blockquote class="uncited"><div>Also you can use regular expressions for the same thing.<br><div class="codebox"><p>Code: </p><pre><code>    set countnumbers [regexp -all {[0-9]} $text]</code></pre></div>The variable $countnumbers will be a value of the counted<br>numbers in the text.<br>[snip]</div></blockquote>That's not what Friischling asked for.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Tue Jun 15, 2004 1:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-06-14T14:31:36-04:00</updated>

		<published>2004-06-14T14:31:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37361#p37361</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37361#p37361"/>
		<title type="html"><![CDATA[How to catch all numbers in a string ???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37361#p37361"><![CDATA[
Also you can use regular expressions for the same thing.<br><div class="codebox"><p>Code: </p><pre><code>    set countnumbers [regexp -all {[0-9]} $text]</code></pre></div>The variable $countnumbers will be a value of the counted<br>numbers in the text.<br><br>Take a look at this previous thread and the examples<br>you can get an idea.<br><br><a href="http://forum.egghelp.org/viewtopic.php?t=7451" class="postlink">http://forum.egghelp.org/viewtopic.php?t=7451</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Jun 14, 2004 2:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-06-14T14:26:11-04:00</updated>

		<published>2004-06-14T14:26:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37360#p37360</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37360#p37360"/>
		<title type="html"><![CDATA[How to catch all numbers in a string ???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37360#p37360"><![CDATA[
Thx alot - it works like a dream<p>Statistics: Posted by Guest — Mon Jun 14, 2004 2:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-06-14T12:28:50-04:00</updated>

		<published>2004-06-14T12:28:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37341#p37341</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37341#p37341"/>
		<title type="html"><![CDATA[How to catch all numbers in a string ???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37341#p37341"><![CDATA[
this should do the trick<div class="codebox"><p>Code: </p><pre><code>regsub -all {[^0-9]} $text {} newtext</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Mon Jun 14, 2004 12:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-06-14T11:31:38-04:00</updated>

		<published>2004-06-14T11:31:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37332#p37332</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37332#p37332"/>
		<title type="html"><![CDATA[How to catch all numbers in a string ???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37332#p37332"><![CDATA[
Hey there <br><br>I need some code, which cathes all numbers in a string. <br>eg.<br><br>!guess kl232 sai0d<br><br>should give med 232 and 0 <br>Any ideas ?<br><br>// JF<p>Statistics: Posted by Guest — Mon Jun 14, 2004 11:31 am</p><hr />
]]></content>
	</entry>
	</feed>
