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

	<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-12-15T20:59:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[wubmerlin]]></name></author>
		<updated>2007-12-15T20:59:18-04:00</updated>

		<published>2007-12-15T20:59:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79359#p79359</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79359#p79359"/>
		<title type="html"><![CDATA[another regexp problem ....]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79359#p79359"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  thanks alot ! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9430">wubmerlin</a> — Sat Dec 15, 2007 8:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-12-15T19:45:50-04:00</updated>

		<published>2007-12-15T19:45:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79358#p79358</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79358#p79358"/>
		<title type="html"><![CDATA[another regexp problem ....]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79358#p79358"><![CDATA[
Using {} prevent the parsing of variables, brackets and such...<br><br>Try something like this instead:<div class="codebox"><p>Code: </p><pre><code>...regexp -nocase "\[-_\]$x\[-_\]" $text...</code></pre></div>Also, your code is flawed, in that it uses lindex on a string, when it should only be used on proper lists. Please considder splitting $arg before using lindex...<br><br>Finally, you really should be creating your list of names properly, that is, something like this:<div class="codebox"><p>Code: </p><pre><code>set test [list roger john frank]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Dec 15, 2007 7:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wubmerlin]]></name></author>
		<updated>2007-12-15T18:09:35-04:00</updated>

		<published>2007-12-15T18:09:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79357#p79357</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79357#p79357"/>
		<title type="html"><![CDATA[another regexp problem ....]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79357#p79357"><![CDATA[
HELP ! i want to scan email address to know if it contain _something_ or -something_ ......<br>Ex: !vlaid <a href="mailto:test_roger_email@testmail.com">test_roger_email@testmail.com</a><br><br>But i cant get it to work.<br>Thanks for your help !<br><div class="codebox"><p>Code: </p><pre><code>proc test { nick uhost hand chan arg } {        set text [lindex $arg 0]        set check [lindex $arg 2]        set test "roger john frank"        foreach x $test {                if {[regexp -nocase {[-_]$x[_-]} $text] != 0} {                        putserv "PRIVMSG $chan :$text is a valid email"                } else {                        putserv "PRIVMSG $chan :$text is invalid"                }        }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9430">wubmerlin</a> — Sat Dec 15, 2007 6:09 pm</p><hr />
]]></content>
	</entry>
	</feed>
