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

	<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>2008-10-26T11:38:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-10-26T11:38:46-04:00</updated>

		<published>2008-10-26T11:38:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85657#p85657</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85657#p85657"/>
		<title type="html"><![CDATA[Regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85657#p85657"><![CDATA[
The code below extracts all the available data, not only the nickname, but should be usable nevertheless.<br><div class="codebox"><p>Code: </p><pre><code># ts_data holds raw data...# Be adviced that there should be no newline within the regular expression below, although some browsers/editors may insert them to fit the code on the monitor (or other medium)set nicklist [list]foreach line [split $ts_data "\n"] { regexp -- {([[:digit:]]+)[[:blank:]]+([[:digit:]]+)[[:blank:]]+([[:digit:]]+)[[:blank:]]+([[:digit:]]+)[[:blank:]]+([[:digit:]]+)[[:blank:]]+([[:digit:]]+)[[:blank:]]+([[:digit:]]+)[[:blank:]]+([[:digit:]]+)[[:blank:]]+([[:digit:]]+)[[:blank:]]+([[:digit:]]+)[[:blank:]]+([[:digit:]]+)[[:blank:]]+([[:digit:]]+)[[:blank:]]+([[:digit:]]+)[[:blank:]]+"([[:alnum:][:punct:]]+)"[[:blank:]]+"([[:alnum:][:punct:][:space:]]+)"} $line all p_id c_id ps bs pr br pl ping logintime cprivs pprivs pflags ip nick loginname #data is stored in the variables p_id, c_id, ps, bs, pr, br, pl, ping, logintime, cprivs, pprivs, pflags, ip, nick, and loginname. #They are overwritten for each iteration (line of data), so make something useful with them within the loop or they'll be lost... lappend nicklist $nick}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Oct 26, 2008 11:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nimos]]></name></author>
		<updated>2008-10-26T07:01:44-04:00</updated>

		<published>2008-10-26T07:01:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85649#p85649</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85649#p85649"/>
		<title type="html"><![CDATA[Regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85649#p85649"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>p_id    c_id    ps      bs      pr      br      pl      ping    logintime     idletime        cprivs  pprivs  pflags  ip     nick     loginname1       8       18642   2650269 2007    306092 0       12      2891    16      0       4       0       "0.0.0.0"       "GFSTD Ghost"   "patrick"3       8       6068    768886  13192   204185529      87      2108    2       0       0       0       "0.0.0.0"       "TeRrOr_FiiL"   ""4       8       15599   2332631 1084    165532 100     51      1511    0       0       4       0       "0.0.0.0"       "_Alexander | PuMa_"    "PumaDAce"5       8       15177   2266954 811     123634 0       39      1464    429     0       0       0       "0.0.0.0"       "_Fab" " "7       8       2167    322267  278     40845  36      98      235     164     0       0       0       "0.0.0.0"       "GFSTD Raph"    ""8       8       2047    304378  53      7117   1167    48      208     0       0       0       0       "0.0.0.0"       "x3_Diana_x3"   ""OK</code></pre></div>For my Teamspeak Viewer, I have this Output from Telnet.<br>How can I filter this for just having:<br>GFSTD Ghost, TeRrOr_ FiiL, _Alexander | PuMa_, _Fab, etc... means only the nicks of the users as output?<br><br><br>Also I need something like "string range" backwards <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br>Is there something like that?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9877">Nimos</a> — Sun Oct 26, 2008 7:01 am</p><hr />
]]></content>
	</entry>
	</feed>
