[Github-comments] [geany/geany] Document the regular expression replacement character (#2439)

elextr notifications at xxxxx
Tue Feb 25 23:16:05 UTC 2020


It may be a little subtle, but the _regex_ 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.

My reference to Glib's replace is irrelevant, it appears that the replace is [Geany's own](https://github.com/geany/geany/blob/f1de94bb88f1c41c817a683da2d789561a36a9ce/src/search.c#L2062) so its totally unrelated to any Perls, so yeah, it should be clearly documented in Geany docs.

Why the Geany docs [repeat](https://github.com/geany/geany/blob/master/doc/geany.txt#regular-expressions) 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 [here](https://github.com/geany/geany/blob/master/doc/geany.txt#replace).

Pull requests are welcome.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2439#issuecomment-591127597
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20200225/efc648d6/attachment.htm>


More information about the Github-comments mailing list