<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: Perl to RegExp]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in Perl to RegExp of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Thu, 21 Oct 2004 21:16:23 +0300</lastBuildDateTag>		<item>
			<title>Perl to RegExp</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic311/message1244/">Perl to RegExp</a></b> <i>Converting a Perl Script to Regular Expressions for TB Template</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			<I>Query moved to TBUDL for full answer<br /><br />See <noindex><a href="http://www.silverstones.com/thebat/TBUDLInfo.html" target="_blank" rel="nofollow">The TBUDL Info page</a></noindex> for information about TBUDL and the address of the list archives if you want to see the answers to this query.</I> <br />
			<i>21 October 2004 21:16:23, <a href="http://www.ritlabs.com/en/forums/">Marck Pearlstone</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic311/message1244/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic311/message1244/</guid>
			<pubDate>Thu, 21 Oct 2004 21:16:23 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>Perl to RegExp</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic311/message1070/">Perl to RegExp</a></b> <i>Converting a Perl Script to Regular Expressions for TB Template</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			As I understand, the TB regular expressions are based on or at least very similar to Perl. So here is my question/problem. I have a simple Perl script that does exactly what I want (although how it does it I do not entirely understand, because I don't know Perl). I want to get the same effect in a TB template. So what should it look like in the template?<br /><br />Here is the Perl:<br /><br />----------------------------------<br />#!/usr/local/bin/perl -w<br /><br /># jaymail.pl<br /><br />while(&lt;&gt;) {<br /> &nbsp; $blank++ if /^$/;<br /><br /> &nbsp; if ($blank) {<br /> &nbsp; &nbsp; print;<br /> &nbsp; &nbsp; next;<br /> &nbsp; }<br /><br /> &nbsp; print if /^(From|To|Subject): /;<br />}<br />----------------------------------<br /><br />Please rescue me from this quandary and make my life much, much easier.<br /><br />-- <br />Avi Yashar<br />Windows XP Pro with TB Pro 3.0.1.33 <br />
			<i>19 October 2004 04:30:17, <a href="http://www.ritlabs.com/en/forums/">Avi Yashar</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic311/message1070/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic311/message1070/</guid>
			<pubDate>Tue, 19 Oct 2004 04:30:17 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
	</channel>
</rss>
