<p>It took me quite a while to guess that the replacement character for Search & Replace is not <code>$1</code> or <code>\\1</code> but <code>\1</code>. <a href="https://en.wikipedia.org/wiki/RTFM" rel="nofollow">STFW</a> came up empty, since most questions are about problems with the pattern, not with the replacement/substitution character.</p>
<p>I think this should be documented somewhere on <a href="https://www.geany.org/manual/gtk/glib/glib-regex-syntax.html" rel="nofollow">https://www.geany.org/manual/gtk/glib/glib-regex-syntax.html</a> or <code><local_path>/doc/geany/html/index.html#regular-expressions</code>.</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=AAIOWJY3YVQL4YN7AGSH56DRDE4YRA5CNFSM4KWDESWKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IN3ASFA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ7IZX4XF6LSYTL75JLRDE4YRANCNFSM4KWDESWA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ5YUIC6TLG5DHR5FPLRDE4YRA5CNFSM4KWDESWKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IN3ASFA.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=AAIOWJY3YVQL4YN7AGSH56DRDE4YRA5CNFSM4KWDESWKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IN3ASFA",
"url": "https://github.com/geany/geany/issues/2439?email_source=notifications\u0026email_token=AAIOWJY3YVQL4YN7AGSH56DRDE4YRA5CNFSM4KWDESWKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IN3ASFA",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>