<?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[Broken repeat search using \A]]></title><description><![CDATA[<p dir="auto">I’ve noticed that in N++ 8.6.4, if I do a regular-expression search for <code>\A</code> on a non-empty document, all goes well (i.e., <code>1 hit</code>), but then if I repeat that <em>Find All in Current Document</em> search immediately (i.e, without changing anything) then I get nothing (i.e., <code>0 hits</code>).</p>
<p dir="auto"><img src="/assets/uploads/files/1710764083249-99b17ce4-c34f-40f2-aad8-8f1314bbae32-image.png" alt="99b17ce4-c34f-40f2-aad8-8f1314bbae32-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">What do others that care to comment think?<br />
Has this oddity been discussed before?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25591/broken-repeat-search-using-a</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 22:12:30 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25591.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 18 Mar 2024 12:16:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Broken repeat search using \A on Tue, 19 Mar 2024 10:57:17 GMT]]></title><description><![CDATA[<p dir="auto">Issue submitted:</p>
<p dir="auto"><a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14881" rel="nofollow ugc">FindAll with single zero-length match at start-of-file breaks subsequent same search</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/93680</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93680</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 19 Mar 2024 10:57:17 GMT</pubDate></item><item><title><![CDATA[Reply to Broken repeat search using \A on Mon, 18 Mar 2024 20:30:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a> said in <a href="/post/93671">Broken repeat search using \A</a>:</p>
<blockquote>
<p dir="auto">it’s also a very obscure set of circumstances that trigger it.</p>
</blockquote>
<p dir="auto">I noticed it when I was trying to get a hit on every file in a directory tree matching a specific <em>Filter</em> using <em>Find in Files</em>, so that I could use the <em>Copy Pathnames</em> feature of <em>Search results</em> right-click menu.</p>
<p dir="auto">It was the most “obvious” search I thought of doing, although later (after the strange behavior noticed) I changed to <code>\z</code> and that worked (on a repetitive basis) to achieve my goal.</p>
<p dir="auto">Neither <code>\A</code> (first time) nor <code>\z</code> works on zero-length files, though.  I suppose I can accept that a search that is supposed to find something, doesn’t find that certain something, because it is searching a void.</p>
<hr />
<p dir="auto">I suppose I should create an official issue about this.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93673</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93673</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 18 Mar 2024 20:30:31 GMT</pubDate></item><item><title><![CDATA[Reply to Broken repeat search using \A on Mon, 18 Mar 2024 19:36:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> I can confirm that this happens in 8.6.5 Release Candidate as well.</p>
<p dir="auto">Further testing suggests that the odd behavior is triggered by a search that results in a single, zero-length match at the very beginning of a file. (It doesn’t have to be <strong>\A</strong>; for example, a look-ahead that only matches in that position will do.)</p>
<p dir="auto">Following that, the next Find All will ignore a zero-length match at the beginning of the file (though other matches, if any, including zero-length matches not at the beginning of the file, will still be reported).</p>
<p dir="auto">I haven’t found the time and concentration yet to see if there is an identifiable reason in the code. It’s definitely unexpected behavior, but it’s also a very obscure set of circumstances that trigger it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93671</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93671</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Mon, 18 Mar 2024 19:36:49 GMT</pubDate></item></channel></rss>