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

	<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>2002-08-06T13:05:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-06T13:05:59-04:00</updated>

		<published>2002-08-06T13:05:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9467#p9467</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9467#p9467"/>
		<title type="html"><![CDATA[regular expressions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9467#p9467"><![CDATA[
ty very much. that worked. u really helped me alot.<p>Statistics: Posted by Guest — Tue Aug 06, 2002 1:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-08-06T11:05:18-04:00</updated>

		<published>2002-08-06T11:05:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9463#p9463</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9463#p9463"/>
		<title type="html"><![CDATA[regular expressions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9463#p9463"><![CDATA[
You can do it with regular expressions and Tcl (version dependant)<br><br>This should work however.<br><br>proc is_only_cap_and_num {t} {<br>  regsub -all -- {[A-Z0-9]} $t "" t<br>  if {$t == ""} { return 1 }<br>  return 0<br>}<br><br>Will return 1 is it is only capc or numbers - no spaces, lower case or any other character allowed.<br><br>proc is_4th_char_a_num {t} {<br>  regsub -aa -- {[0-9]} [string index $t 3] "" t<br>  if {$t == ""} { return 1 }<br>  return 0<br>}<br><br>Will return 1 with the 4th character is a number.<br><br>Both can be done in Tcl, but can be long winded.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Aug 06, 2002 11:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-06T10:35:26-04:00</updated>

		<published>2002-08-06T10:35:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9462#p9462</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9462#p9462"/>
		<title type="html"><![CDATA[regular expressions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9462#p9462"><![CDATA[
how do i check whether a certain string contains only capital letters and numbers?<br>how do i check whether the 4th character in a string is a number?<br>i heard u can do all these with regular expressions but unfortunately i have no idea how to use them  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by Guest — Tue Aug 06, 2002 10:35 am</p><hr />
]]></content>
	</entry>
	</feed>
