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

	<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-10-17T23:29:07-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-10-17T23:29:07-04:00</updated>

		<published>2004-10-17T23:29:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41968#p41968</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41968#p41968"/>
		<title type="html"><![CDATA[striping html tags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41968#p41968"><![CDATA[
<blockquote class="uncited"><div>% puts $html<br>text &lt;a href="<a href="http://host.tld/%22%3Edesc%3C/a" class="postlink">http://host.tld/"&gt;desc&lt;/a</a>&gt; test text &lt;a href="<a href="http://host.tld/%22%3Edesc%3C/a" class="postlink">http://host.tld/"&gt;desc&lt;/a</a>&gt; test<br>% regexp {&lt;a href=\"(.*?)\"&gt;(.*?)&lt;/a&gt;} $html a b<br>1<br>% puts $a<br>&lt;a href="<a href="http://host.tld/%22%3Edesc%3C/a" class="postlink">http://host.tld/"&gt;desc&lt;/a</a>&gt;<br>% puts $b<br><a href="http://host.tld/" class="postlink">http://host.tld/</a><br>%</div></blockquote>verry nice<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Oct 17, 2004 11:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-11T14:30:40-04:00</updated>

		<published>2004-10-11T14:30:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41758#p41758</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41758#p41758"/>
		<title type="html"><![CDATA[striping html tags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41758#p41758"><![CDATA[
looks like you're looking for the non-greedy quantifiers.. try .*? instead of .* <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=2878">user</a> — Mon Oct 11, 2004 2:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-10-10T22:28:32-04:00</updated>

		<published>2004-10-10T22:28:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41747#p41747</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41747#p41747"/>
		<title type="html"><![CDATA[striping html tags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41747#p41747"><![CDATA[
tnx this worked not exactly as i wanted but it worked <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>it didn't returned the url from href="&lt;here&gt;" but thats ok ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Oct 10, 2004 10:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-10-10T21:16:58-04:00</updated>

		<published>2004-10-10T21:16:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41746#p41746</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41746#p41746"/>
		<title type="html"><![CDATA[striping html tags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41746#p41746"><![CDATA[
ah, guess i didn't understand you correctly<br><br>this code should remove all the html tags<div class="codebox"><p>Code: </p><pre><code>regsub -all {&lt;(.|\n)*?&gt;} $html {} clean</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Sun Oct 10, 2004 9:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-10-10T17:37:46-04:00</updated>

		<published>2004-10-10T17:37:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41742#p41742</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41742#p41742"/>
		<title type="html"><![CDATA[striping html tags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41742#p41742"><![CDATA[
i knew that .. but that doesn't exactly solve my problem<br><blockquote class="uncited"><div>% set html {text &lt;a href="<a href="http://host.tld/%22%3Edesc%3C/a" class="postlink">http://host.tld/"&gt;desc&lt;/a</a>&gt; test text &lt;a href="<a href="http://host.tld/%22%3Edesc%3C/a" class="postlink">http://host.tld/"&gt;desc&lt;/a</a>&gt; test}<br>text &lt;a href="<a href="http://host.tld/%22%3Edesc%3C/a" class="postlink">http://host.tld/"&gt;desc&lt;/a</a>&gt; test text &lt;a href="<a href="http://host.tld/%22%3Edesc%3C/a" class="postlink">http://host.tld/"&gt;desc&lt;/a</a>&gt; test<br>% regexp {&lt;a href=\"(.*)\"&gt;(.*)&lt;/a&gt;} $html a b<br>1<br>% puts $a<br>&lt;a href="<a href="http://host.tld/%22%3Edesc%3C/a" class="postlink">http://host.tld/"&gt;desc&lt;/a</a>&gt; test text &lt;a href="<a href="http://host.tld/%22%3Edesc%3C/a" class="postlink">http://host.tld/"&gt;desc&lt;/a</a>&gt;<br>% puts $b<br><a href="http://host.tld/%22%3Edesc%3C/a" class="postlink">http://host.tld/"&gt;desc&lt;/a</a>&gt; test text &lt;a href="<a href="http://host.tld/" class="postlink">http://host.tld/</a><br>%</div></blockquote>see i need only the urls .. so i can remove them ..<br><br>a string can contain more then one url tag ..<br><div class="codebox"><p>Code: </p><pre><code>proc tagRemove {arg} {  set arg [string map {\\ \\\\ \[ \\\[ \] \\\] \{ \\\{ \} \\\} \( \\\( \) \\\) \" \\\"} $arg]  regexp {&lt;a href=\"(.*)\"&gt;(.*)&lt;/a&gt;} $arg a b  set arg [string map [list $a $b] $arg]}</code></pre></div>the string above didn't do that as well but tnx for tyring..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Oct 10, 2004 5:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-10-10T17:09:08-04:00</updated>

		<published>2004-10-10T17:09:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41739#p41739</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41739#p41739"/>
		<title type="html"><![CDATA[striping html tags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41739#p41739"><![CDATA[
Something like this ?<div class="codebox"><p>Code: </p><pre><code>set html {text &lt;a href="http://host.tld/"&gt;desc&lt;/a&gt;}regexp {(.*).&lt;a.*="(.*)"&gt;(.*)&lt;/a&gt;} $html garbage text url desc</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Sun Oct 10, 2004 5:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-10-10T16:42:51-04:00</updated>

		<published>2004-10-10T16:42:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41736#p41736</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41736#p41736"/>
		<title type="html"><![CDATA[striping html tags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41736#p41736"><![CDATA[
how do i remove html tags from a string..<br><br>example:<br><blockquote class="uncited"><div> text &lt;a href="<a href="http://host.tld/%22%3Edesc%3C/a" class="postlink">http://host.tld/"&gt;desc&lt;/a</a>&gt; text =&gt; text <a href="http://host.tld/" class="postlink">http://host.tld/</a> text</div></blockquote>i know this is been discussed before but i can't seem to find anything like this in the forum.. <br><br>i tryed several querys but none outputted the result i was looking for<br><br>i checked regsub but can't put my finger on it ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Oct 10, 2004 4:42 pm</p><hr />
]]></content>
	</entry>
	</feed>
