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

	<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>2010-04-12T15:43:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-04-12T15:43:37-04:00</updated>

		<published>2010-04-12T15:43:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92822#p92822</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92822#p92822"/>
		<title type="html"><![CDATA[working with multiple RegExp Matches]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92822#p92822"><![CDATA[
I'd use something along these lines:<div class="codebox"><p>Code: </p><pre><code>set matches [regexp -inline -all -- {some pattern} data]foreach {match submatch1 submatch2 ...} $matches { #do something useful for each match here...}</code></pre></div>Just make sure the variable-list in foreach matches the matchVar+subMatchVar set you'd normally use (when not using -inline).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Apr 12, 2010 3:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[g33k]]></name></author>
		<updated>2010-04-12T15:32:42-04:00</updated>

		<published>2010-04-12T15:32:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92821#p92821</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92821#p92821"/>
		<title type="html"><![CDATA[working with multiple RegExp Matches]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92821#p92821"><![CDATA[
hi,<br><br>im writing a small website parsing tcl script. my question is how i can handle with multiple regexp matches? how can i work with every single match or how to put these in a variable?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11176">g33k</a> — Mon Apr 12, 2010 3:32 pm</p><hr />
]]></content>
	</entry>
	</feed>
