<p>Good day.<br>
Found the following.</p>
<p>Geany: Geany 1.34.1, Russian_Russia.1251<br>
Geany: GTK 2.24.32, GLib 2.58.1</p>
<p><strong>1.</strong><br>
Consider the following plain text:</p>
<pre><code>123




456

</code></pre>
<p>After 123 follow five empty lines, field 456 follows one empty line.</p>
<p><strong>2.</strong><br>
Open <strong>Search/Find</strong><br>
<strong>Search for</strong>: <code>(?s)^(.*)\n(.*\1)</code><br>
<strong>Replace for</strong>: <code>\2</code><br>
[v] Use regular expressions<br>
[v] Use multi-line matching</p>
<p><strong>3</strong>.<br>
Repeat pressed button "In document" while replace not stoped and get next text:</p>
<pre><code>123

456

</code></pre>
<p><strong>4.</strong><br>
Create a new empty file and paste the text from step 3</p>
<p><strong>5.</strong><br>
Repeat the procedure from steps 2 and 3. The line between 123 and 456 will be deleted.<br>
Can you tell me what is wrong?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2096">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJz1K0xgU8p3IiR2Ejyc0DaxOXvVbks5vSjoNgaJpZM4baRIO">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJzG0lPEMZe2NIT2fraBWe_G1c3IXks5vSjoNgaJpZM4baRIO.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Regex. Empty line not fond in text with repeated subpattern (#2096)"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/2096"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2096",
"url": "https://github.com/geany/geany/issues/2096",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>