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

	<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-05-17T01:53:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-05-17T01:53:57-04:00</updated>

		<published>2004-05-17T01:53:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36393#p36393</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36393#p36393"/>
		<title type="html"><![CDATA[Removing characters from a string with regsub]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36393#p36393"><![CDATA[
Thanks, that's also a good idea.<br>Both work anyhow.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon May 17, 2004 1:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dollar]]></name></author>
		<updated>2004-05-11T12:21:03-04:00</updated>

		<published>2004-05-11T12:21:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36280#p36280</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36280#p36280"/>
		<title type="html"><![CDATA[Removing characters from a string with regsub]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36280#p36280"><![CDATA[
How about trying?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz">  <br><div class="codebox"><p>Code: </p><pre><code>% set arg "blah blah blah"blah blah blah% regsub -all { } $arg {} text2% puts $textblahblahblah% set arg "Blah bLah blAh"Blah bLah blAh% regsub -all {[A-Z]} $arg {} text3% puts $textlah bah blh% set arg "bl4h b1ah bla8"bl4h b1ah bla8% regsub -all {[0-9]} $arg {} text3% puts $textblh bah bla</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4046">dollar</a> — Tue May 11, 2004 12:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-05-11T03:16:27-04:00</updated>

		<published>2004-05-11T03:16:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36274#p36274</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36274#p36274"/>
		<title type="html"><![CDATA[Removing characters from a string with regsub]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36274#p36274"><![CDATA[
Hi,<br><br>Suppose if I want to remove spaces from a string<br>would this be the command?<br><br>The $arg string variable will remove spaces from<br>the string and form the new $text variable with<br>the spaces removed.<br><br>Is this correct?<br><br>    regsub -all " " $arg "" text<br><br><br>If so, can the same be done for alphabets<br>and numbers,<br><br>Like using \[A-Z\] to remove all upper case chars<br>and \[0-9\] to remove all numbers from the string.<br><br>Something like:<br><br>   regsub -all "\[A-Z\]" $arg "" text<br>   regsub -all "\[0-9\]" $arg "" text<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue May 11, 2004 3:16 am</p><hr />
]]></content>
	</entry>
	</feed>
