<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: Regex to find one email in the TO line]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in Regex to find one email in the TO line of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Thu, 18 Jun 2026 23:34:27 +0300</lastBuildDateTag>		<item>
			<title>Regex to find one email in the TO line</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic16753/message58767/">Regex to find one email in the TO line</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			Try this one:<br />
====code====
<pre>%SetPattRegExp="(.*)(my-friend@gmail.com)"%-
%RegExpBlindMatch="%ToList"%-
%_match=%SubPatt(2)%-
%IF:"%_match"="my-friend@gmail.com":%RCPTCONFIRM</pre>
=============
<br />You should search <B>entire To</B> line, not the recipient address only (macro <B>%ToList</B> instead of <B>%ToAddr</B>) <br />
			<i>18 June 2026 23:34:27, <a href="http://www.ritlabs.com/en/forums/">Zygmunt Wereszczyński</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic16753/message58767/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic16753/message58767/</guid>
			<pubDate>Thu, 18 Jun 2026 23:34:27 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>Regex to find one email in the TO line</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic16753/message58759/">Regex to find one email in the TO line</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			Is there a way to make this macro work if there are other addresses on the to: line?<br /><br />%SetPattRegExp="my-friend@gmail.com"%-%RegExpBlindMatch="%ToAddr"%- &nbsp;%_match=%SubPatt(0)%- &nbsp;%IF:"%_match"="my-friend@gmail.com":%RCPTCONFIRM <br />
			<i>16 June 2026 05:38:49, <a href="http://www.ritlabs.com/en/forums/">Jasper Gott</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic16753/message58759/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic16753/message58759/</guid>
			<pubDate>Tue, 16 Jun 2026 05:38:49 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
	</channel>
</rss>
