<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: Replace string in regex]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in Replace string in regex of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Thu, 28 Jul 2022 18:29:03 +0300</lastBuildDateTag>		<item>
			<title>Replace string in regex</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic13388/message53938/">Replace string in regex</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			So, 'True Friend' -- Sygmunt offered you an extensive solution here ten days ago. Did it help you? <br />
			<i>28 July 2022 18:29:03, <a href="http://www.ritlabs.com/en/forums/">Daniel van Rooijen</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic13388/message53938/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic13388/message53938/</guid>
			<pubDate>Thu, 28 Jul 2022 18:29:03 +0300</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Replace string in regex</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic13388/message53877/">Replace string in regex</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			<br />====quote====<br /><a class="blog-p-user-name" id="bp_jgcBR99W" href="/en/forums/" bx-tooltip-user-id="97812">True Friend</a> wrote:<br /><br />but i want replace domain.tld to domain_tld<br /><br /><br />=============<br />The Bat! provides the macro to automatically find all occurrences of the pattern defined as the regular ex * pression (&quot;<B>regexp</B>&quot;) and replace it with the specified &quot;<B>new_text</B>&quot; in the &quot;<B>text</B>&quot; searched. A fourth argument <B>n</B>, which is the number of the matched subpattern, may be optionally supplied. As the &quot;<B>text</B>&quot; to be searched, the result of another macro can be used (for example,% OText). The syntax of this macro is following: <br />
====code====
<pre>%ReplaceRegExp("regexp", "new_text", "text"&#91;, n&#93;)</pre>
=============
<br />So, your problem can be solved using the macro: <br />
====code====
<pre>%ReplaceRegExp("(?is)domain.tld", "domain_tld", "%OFromAddr")</pre>
=============
<br />Given macro returns the sender address with modified domain name. I use %OFromAddr macro here instead of %FromAddr because you want probably analyse incoming mail. <br />
			<i>18 July 2022 18:21:24, <a href="http://www.ritlabs.com/en/forums/">Zygmunt Wereszczyński</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic13388/message53877/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic13388/message53877/</guid>
			<pubDate>Mon, 18 Jul 2022 18:21:24 +0300</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Replace string in regex</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic13388/message53875/">Replace string in regex</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			No, RegEx is much older than Python. Python and many other languages do support RegEx, though. <br />
			<i>18 July 2022 12:14:40, <a href="http://www.ritlabs.com/en/forums/">Daniel van Rooijen</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic13388/message53875/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic13388/message53875/</guid>
			<pubDate>Mon, 18 Jul 2022 12:14:40 +0300</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Replace string in regex</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic13388/message53873/">Replace string in regex</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			<br />====quote====<br /><a class="blog-p-user-name" id="bp_6STeh1rg" href="/en/forums/" bx-tooltip-user-id="311">Daniel van Rooijen</a> wrote:<br />I don&#39;t know if any RegEx specialists are reading here.<br /><br />Maybe your question is not really specific to The Bat, and you can ask about it elsewhere? There must be forums that specialize in RegEx issues. <br /><br />Good luck either way!<br />=============<br />This regex language is Python? &nbsp; <br />
			<i>18 July 2022 11:35:31, <a href="http://www.ritlabs.com/en/forums/">True Friend</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic13388/message53873/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic13388/message53873/</guid>
			<pubDate>Mon, 18 Jul 2022 11:35:31 +0300</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Replace string in regex</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic13388/message46766/">Replace string in regex</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			I don't know if any RegEx specialists are reading here.<br /><br />Maybe your question is not really specific to The Bat, and you can ask about it elsewhere? There must be forums that specialize in RegEx issues. <br /><br />Good luck either way! <br />
			<i>09 February 2019 22:57:48, <a href="http://www.ritlabs.com/en/forums/">Daniel van Rooijen</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic13388/message46766/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic13388/message46766/</guid>
			<pubDate>Sat, 09 Feb 2019 22:57:48 +0200</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Replace string in regex</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic13388/message46765/">Replace string in regex</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			Please <br />
			<i>09 February 2019 04:25:15, <a href="http://www.ritlabs.com/en/forums/">True Friend</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic13388/message46765/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic13388/message46765/</guid>
			<pubDate>Sat, 09 Feb 2019 04:25:15 +0200</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Replace string in regex</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic13388/message45890/">Replace string in regex</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			Hi. How can replace text in regex?<br />I have script for parsing email address.<br /><br />%SetPattRegExp=_(.*)@(.*)_%-<br />%RegExpBlindMatch=_%FromAddr_%-<br />%SubPatt=_2_<br /><br />but i want replace domain.tld to domain_tld<br /><br />Thanks <br />
			<i>15 June 2018 14:42:35, <a href="http://www.ritlabs.com/en/forums/">True Friend</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic13388/message45890/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic13388/message45890/</guid>
			<pubDate>Fri, 15 Jun 2018 14:42:35 +0300</pubDate>
			<category>The Bat! - Filters</category>
		</item>
	</channel>
</rss>
