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

	<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>2011-08-21T11:28:19-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Elfriede]]></name></author>
		<updated>2011-08-21T11:28:19-04:00</updated>

		<published>2011-08-21T11:28:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97479#p97479</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97479#p97479"/>
		<title type="html"><![CDATA[regexp slash]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97479#p97479"><![CDATA[
Perfect ! Exactly what i was looking for. Many, many thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9204">Elfriede</a> — Sun Aug 21, 2011 11:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-08-21T11:24:51-04:00</updated>

		<published>2011-08-21T11:24:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97478#p97478</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97478#p97478"/>
		<title type="html"><![CDATA[regexp slash]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97478#p97478"><![CDATA[
Personally, I'd probably consider using the "file dirname" command since you're talking of the directory separator (/), or in a more generic case, a split/lrange/join combo.<br><br>A regular expression however, would look something like this:<div class="codebox"><p>Code: </p><pre><code>^(.*)/[^^]+$</code></pre></div>Implementing this in tcl would look something like this:<div class="codebox"><p>Code: </p><pre><code>set string ".this/is/some/text/in/here"set pattern {^(.*)/[^^]+$}regexp -- $pattern $string Match subMatch1#You'll now find "./this/is/some/text/in" in the $subMatch1 variable, if we've got a match...</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Aug 21, 2011 11:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Elfriede]]></name></author>
		<updated>2011-08-21T11:00:43-04:00</updated>

		<published>2011-08-21T11:00:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97477#p97477</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97477#p97477"/>
		<title type="html"><![CDATA[regexp slash]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97477#p97477"><![CDATA[
Hi everyone <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Im afraid its quite easy, but i dont get it. <br><br>Example:<br><br>.this/is/some/text/in/here <br><br>All i need is always getting except the text after the last /<br>In this case -&gt; .this/is/some/text/in<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9204">Elfriede</a> — Sun Aug 21, 2011 11:00 am</p><hr />
]]></content>
	</entry>
	</feed>
