<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Search and Replace With Backwards Direction Checked Doesn&#x27;t capture groups]]></title><description><![CDATA[<p dir="auto">I was having trouble with search and replace and found a site that claimed Using Search and Replace With Patterns:<br />
Capture ([\d]+):<br />
Replace: prefix_\1_suffix<br />
Against Text:</p>
<p dir="auto">12343:<br />
123a:<br />
1111:<br />
222<br />
333:</p>
<p dir="auto">Produces:<br />
prefix_12343_suffix<br />
123a:<br />
prefix_1111_suffix<br />
222<br />
prefix_333_suffix</p>
<p dir="auto">Which is true… unless you have “Backwards direction” checked, the cursor at the end of the file and press “Replace”.<br />
(Replace all seems to work)… but just replace results in:<br />
prefix__suffix<br />
123a:<br />
prefix__suffix<br />
222<br />
prefix__suffix</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/18922/search-and-replace-with-backwards-direction-checked-doesn-t-capture-groups</link><generator>RSS for Node</generator><lastBuildDate>Thu, 18 Jun 2026 08:14:44 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18922.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 16 Feb 2020 04:44:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Search and Replace With Backwards Direction Checked Doesn&#x27;t capture groups on Sun, 16 Feb 2020 14:01:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eightvo-8080" aria-label="Profile: Eightvo-8080">@<bdi>Eightvo-8080</bdi></a></p>
<p dir="auto">So you haven’t mentioned the magic words, but clearly you are working with “regular expressions” or “regex”.</p>
<p dir="auto">Searching in a backward direction with regex has known problems and is partially disabled in Notepad++ currently (7.8.4) – but this isn’t a new problem, it has probably existed back to the days when regex capability was first introduced in version 6.0.</p>
<p dir="auto">If would be nice if it were either (a) fully disabled <em>OR</em> (b, as in “better”) made to work right.</p>
<p dir="auto">Unless and until it is made to work correctly, backward regex capture groups not working as intended is not surprising.  I don’t think there’s any kind of workaround; sorry.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50700</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50700</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 16 Feb 2020 14:01:05 GMT</pubDate></item></channel></rss>