<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: Macro in macro]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in Macro in macro of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Mon, 30 Apr 2007 19:03:37 +0300</lastBuildDateTag>		<item>
			<title>Macro in macro</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic4283/message17544/">Macro in macro</a></b> <i>Macro syntax problem</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			The reason not to use the DateShort macro is because that uses the system's country settings for the date. I don't know what your country settings dictate, but mine don't set a dot as separator. <br /><br />The way to use regexp in your subjext is the same as the original question: Don't use the same quotation marks for both macros.<br />Your macro reads as: %Subject="%SETPATTREGEXP=" the second quotation mark sets the end of the %Subject macro. The rest of your regexp is inserted in the text body, TB doesn't care whether that text makes any sense or not.<br />So first you start with building a regexp that has the desied output and then you build a set of quotation marks around it that you don't use in the regexp itself. You can use pairs of ' or &nbsp;" as quotation marks, but also things like #, _ or &. <br />
			<i>30 April 2007 19:03:37, <a href="http://www.ritlabs.com/en/forums/">Roelof Otten</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic4283/message17544/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic4283/message17544/</guid>
			<pubDate>Mon, 30 Apr 2007 19:03:37 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>Macro in macro</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic4283/message17541/">Macro in macro</a></b> <i>Macro syntax problem</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			why not only using %ODATESHORT ?<br /><br />and that all...<br /><br />I have a small question:<br /><br />How can I use some regex like in the subjet ?<br /><br />%Subject="%SETPATTREGEXP="(?i-s)^BProduct :\s(.*)$|\z"%-%REGEXPBLINDMATCH="%text"%-'" <br />
			<i>30 April 2007 16:25:44, <a href="http://www.ritlabs.com/en/forums/">lemo nico</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic4283/message17541/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic4283/message17541/</guid>
			<pubDate>Mon, 30 Apr 2007 16:25:44 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>Macro in macro</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic4283/message16482/">Macro in macro</a></b> <i>Macro syntax problem</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			TB starts reading from the first quotation mark to the second and considers that as the parameter for the %Subject= macro, then it goes on with your text and that shows up as:<br />dd.mm.yyyy""<br /><br /><br />So you'd better try this:<br />%Subject=" / %Date='dd.mm.yyyy'"%-<br /><br /> <br />
			<i>21 February 2007 20:17:03, <a href="http://www.ritlabs.com/en/forums/">Roelof Otten</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic4283/message16482/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic4283/message16482/</guid>
			<pubDate>Wed, 21 Feb 2007 20:17:03 +0200</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>Macro in macro</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic4283/message16480/">Macro in macro</a></b> <i>Macro syntax problem</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			Hi to all!<br />I need your help about a problem with macro in macro.<br />The problem is this: in one of the layout, I need to insert the date in dd.mm.yyyy format in the subject.<br />So I think to use this macro:<br />%SUBJECT=" / %DATE="dd.mm.yyyy""%-<br />The result is <br /><br />Subj: / dd/mm/yyyy<br />Text: dd.mm.yyyy" "<br /><br />Can you help me?<br /><br />Best regards,<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Brunnen.Naz <br />
			<i>21 February 2007 18:34:15, <a href="http://www.ritlabs.com/en/forums/">Nazareno Piero Babudri</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic4283/message16480/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic4283/message16480/</guid>
			<pubDate>Wed, 21 Feb 2007 18:34:15 +0200</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
	</channel>
</rss>
