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

	<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-03-23T18:13:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-03-23T18:13:00-04:00</updated>

		<published>2002-03-23T18:13:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5646#p5646</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5646#p5646"/>
		<title type="html"><![CDATA[Need help with regexp :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5646#p5646"><![CDATA[
well the string i showed you was just a example.<br><br>The code is going to be used on strings that are not always the same but follow the same pattern within the string.<br><br>Anyhow thanks alot, works just fine <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><br>Appreciate it.<br><br><br><br>&lt;font size=-1&gt;[ This Message was edited by: ThEdGE on 2002-03-23 15:13 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Sat Mar 23, 2002 6:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-03-23T16:52:00-04:00</updated>

		<published>2002-03-23T16:52:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5645#p5645</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5645#p5645"/>
		<title type="html"><![CDATA[Need help with regexp :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5645#p5645"><![CDATA[
set str "one two three four"<br>regexp {([^ ]*) four} $str total_match three<br><br>Now $total_match will be "three four" and $three will be "three"<br><br>But why do you want a regexp?<br><br>set three [lindex [split $str] 2]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sat Mar 23, 2002 4:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-03-23T14:39:00-04:00</updated>

		<published>2002-03-23T14:39:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5643#p5643</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5643#p5643"/>
		<title type="html"><![CDATA[Need help with regexp :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5643#p5643"><![CDATA[
Got some problems with the damn regexp being a pain in the ass <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><br>Well hope someone can figure it out,<br>lets say we have a string:<br><br><strong class="text-strong">"one two three four five six"</strong><br><br>and i would like to have the word before "four" in var using regexp.<br><br>So that the new string will be "three",<br>the best i got was:<br><br><strong class="text-strong">regexp {( ).*( four )} $string string</strong><br><br>but this will return "two three" <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":sad:" title="Sad"><br><br>Anyawy im clueless tried several combinations, but no luck. Hope anyone can help me out.<p>Statistics: Posted by Guest — Sat Mar 23, 2002 2:39 pm</p><hr />
]]></content>
	</entry>
	</feed>
