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

	<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>2004-06-15T12:06:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-06-15T12:06:00-04:00</updated>

		<published>2004-06-15T12:06:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37410#p37410</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37410#p37410"/>
		<title type="html"><![CDATA[special char in regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37410#p37410"><![CDATA[
Yeah I know... take a look at this thread<br>carefully and read it all the way through.<br><br>At the bottom you would find the working result.<br><br><br><a href="http://forum.egghelp.org/viewtopic.php?t=7348&amp;highlight=ascii" class="postlink">http://forum.egghelp.org/viewtopic.php? ... ight=ascii</a><br><br>If you want to add special characters and ascii codes<br>do the way I have done in that thread.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Jun 15, 2004 12:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[t3ch^]]></name></author>
		<updated>2004-06-15T11:40:48-04:00</updated>

		<published>2004-06-15T11:40:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37408#p37408</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37408#p37408"/>
		<title type="html"><![CDATA[special char in regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37408#p37408"><![CDATA[
i have this script:<br><div class="codebox"><p>Code: </p><pre><code># We need http package#package req httpbind pub - !tv info:tvproc info:tv {nick host handle chan text} {set url "http://tvprogram.nu/cgi-tvprogram/pp1.cgi?NU-palmpilot.htm"set data [http::data [http::geturl $url]]if {![regexp -nocase {&lt;b&gt;SVT1&lt;/b&gt;(.*?)&lt;b&gt;([0-9\.]+) ([0-9a-zA-ZåäöÅÄÖ\-\.\,\?\:\'\&amp;\n ]*)&lt;/b&gt;} $data data2 ok time1 tv1]} {set tv1 "?"; set time1 "?"}if {![regexp -nocase {&lt;b&gt;SVT2&lt;/b&gt;(.*?)&lt;b&gt;([0-9\.]+) ([0-9a-zA-ZåäöÅÄÖ\-\.\,\?\:\'\&amp;\n ]*)&lt;/b&gt;} $data data2 ok time2 tv2]} {set tv2 "?"; set time2 "?"}if {![regexp -nocase {&lt;b&gt;TV3 SVERIGE&lt;/b&gt;(.*?)&lt;b&gt;([0-9\.]+) ([0-9a-zA-ZåäöÅÄÖ\-\.\,\?\:\'\&amp;\n ]*)&lt;/b&gt;} $data data2 ok time3 tv3]} {set tv3 "?"; set time3 "?"}if {![regexp -nocase {&lt;b&gt;TV4&lt;/b&gt;(.*?)&lt;b&gt;([0-9\.]+) ([0-9a-zA-ZåäöÅÄÖ\-\.\,\?\:\'\&amp;\n ]*)&lt;/b&gt;} $data data2 ok time4 tv4]} {set tv4 "?"; set time4 "?"}if {![regexp -nocase {&lt;b&gt;TV4\+&lt;/b&gt;(.*?)&lt;b&gt;([0-9\.]+) ([0-9a-zA-ZåäöÅÄÖ\-\.\,\?\:\'\&amp;\n ]*)&lt;/b&gt;} $data data2 ok time5 tv5]} {set tv5 "?"; set time5 "?"}if {![regexp -nocase {&lt;b&gt;KANAL5&lt;/b&gt;(.*?)&lt;b&gt;([0-9\.]+) ([0-9a-zA-ZåäöÅÄÖ\-\.\,\?\:\'\&amp;\n ]*)&lt;/b&gt;} $data data2 ok time6 tv6]} {set tv6 "?"; set time6 "?"}if {![regexp -nocase {&lt;b&gt;ZTV&lt;/b&gt;(.*?)&lt;b&gt;([0-9\.]+) ([0-9a-zA-ZåäöÅÄÖ\-\.\,\?\:\'\&amp;\n ]*)&lt;/b&gt;} $data data2 ok time7 tv7]} {set tv7 "?"; set time7 "?"}set svt1 [lindex [split $tv1 \n] 0]set svt2 [lindex [split $tv2 \n] 0]set tv3 [lindex [split $tv3 \n] 0]set tv4 [lindex [split $tv4 \n] 0]set tv42 [lindex [split $tv5 \n] 0]set kanal5 [lindex [split $tv6 \n] 0]set ztv [lindex [split $tv7 \n] 0]puthelp "PRIVMSG $chan :\002SVT1:\002 \[${time1}\] $svt1 \002SVT2:\002 \[${time2}\] $svt2 \002TV3:\002 \[${time3}\] $tv3"puthelp "PRIVMSG $chan :\002TV4:\002 \[${time4}\] $tv4 \002TV4+:\002 \[${time5}\] $tv42 \002KANAL5:\002 \[${time6}\] $kanal5 \002ZTV:\002 \[${time7}\] $ztv" } </code></pre></div>working prety nice. but now i noticed a bug. it doesnt work with ü<br>i changed this code:  ([0-9a-zA-ZåäöÅÄÖ\-\.\,\?\:\'\&amp;\n ]*)<br>to: ([0-9a-zA-ZåäöÅÄÖ\-\.\,\?\:\'\&amp;\n\ü ]*)<br><br>result: Tcl error [info:tv]: couldn't compile regular expression pattern: invalid escape \ sequence<br><br>pls hilfi <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4315">t3ch^</a> — Tue Jun 15, 2004 11:40 am</p><hr />
]]></content>
	</entry>
	</feed>
