<p>It may be a little subtle, but the <em>regex</em> syntax is Perl compatible, (and it is also yuckmascript compatible if a flag is set, Geany doesn't set it) but replacement isn't part of the regex syntax and thats why it isn't documented in the Glib regex syntax page.</p>
<p>My reference to Glib's replace is irrelevant, it appears that the replace is <a href="https://github.com/geany/geany/blob/f1de94bb88f1c41c817a683da2d789561a36a9ce/src/search.c#L2062">Geany's own</a> so its totally unrelated to any Perls, so yeah, it should be clearly documented in Geany docs.</p>
<p>Why the Geany docs <a href="https://github.com/geany/geany/blob/master/doc/geany.txt#regular-expressions">repeat</a> the regex stuff I'm not sure, but I think its from back when it used a less common regex engine, but thats where the replace stuff is hidden, maybe it should be <a href="https://github.com/geany/geany/blob/master/doc/geany.txt#replace">here</a>.</p>
<p>Pull requests are welcome.</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=AAIOWJY2EAHEGJCTLZC6W6LREWRDLA5CNFSM4KWDESWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM56ILI#issuecomment-591127597">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ33LQGCUTANEZZBG6TREWRDLANCNFSM4KWDESWA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJZZBQLXHV3BHKNO3XTREWRDLA5CNFSM4KWDESWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM56ILI.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=AAIOWJY2EAHEGJCTLZC6W6LREWRDLA5CNFSM4KWDESWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM56ILI#issuecomment-591127597",
"url": "https://github.com/geany/geany/issues/2439?email_source=notifications\u0026email_token=AAIOWJY2EAHEGJCTLZC6W6LREWRDLA5CNFSM4KWDESWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM56ILI#issuecomment-591127597",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>