<p>May I also suggest replacing <code>\n</code> with <code>\1...\9</code>?  Maybe that way it is easier to visually identify if you're looking for it, and less ambiguous (a literal <code>\n</code> means newline, and maybe someone reading the docs quickly just ignores that entry because they assume it's talking about the newline).</p>
<p>(And maybe it is a good idea to add a note in the documentation highlighting that <code>&</code> and <code>$1...$9</code> don't work as they do in other regex "dialects" such as Perl; it's <code>\0</code> and <code>\1...\9</code> here.  After all, the documentation does claim that <em>"the syntax is Perl compatible"</em>, so one might assume this also applies to substitution patterns.)</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/2439?email_source=notifications&email_token=AAIOWJ5SG7MOTUEFVG4POWDREUUCHA5CNFSM4KWDESWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM4F4TI#issuecomment-590896717">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ4UFXPFVOUBJSAZ3K3REUUCHANCNFSM4KWDESWA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ2CGOGSVD6ZRI5INQLREUUCHA5CNFSM4KWDESWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM4F4TI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2439?email_source=notifications\u0026email_token=AAIOWJ5SG7MOTUEFVG4POWDREUUCHA5CNFSM4KWDESWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM4F4TI#issuecomment-590896717",
"url": "https://github.com/geany/geany/issues/2439?email_source=notifications\u0026email_token=AAIOWJ5SG7MOTUEFVG4POWDREUUCHA5CNFSM4KWDESWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM4F4TI#issuecomment-590896717",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>