[Geany-devel] POSIX system/GNU regex engine for find & replace in trunk - Re: SF.net SVN: geany:[4746] trunk

Nick Treleaven nick.treleaven at xxxxx
Tue Mar 9 17:32:56 UTC 2010


Hi,
I've switched the regex engine for the find & replace dialog 'Use
regular expressions' option. This is (potentially) more powerful and
fixes some issues (see below).

Please test and give feedback, thanks.

On Tue, 09 Mar 2010 16:56:05 +0000
ntrel at users.sourceforge.net wrote:

> Revision: 4746
>           http://geany.svn.sourceforge.net/geany/?rev=4746&view=rev
> Author:   ntrel
> Date:     2010-03-09 16:56:04 +0000 (Tue, 09 Mar 2010)
> 
> Log Message:
> -----------
> Merge gnu-regex branch:
> Use POSIX system/GNU regex engine for find & replace 'Use regular
> expressions' option. This alters regex syntax a bit - see the docs
> for details; we now support '?' operator and replacement backslash
> escaping is more standard.
> Make regex search imply replacing escaped chars.
> Allow \0 backreference replacement for the whole match.
> Note: Replace All may be slower; if this is a problem please let me
> know.
> - code:
> Add argument to utils_str_replace_escape() for keeping
> uninterpreted backslash escapes e.g. '\\', '\e'.
> 
> Modified Paths:
> --------------
>     trunk/ChangeLog
>     trunk/doc/geany.html
>     trunk/doc/geany.txt
>     trunk/src/document.c
>     trunk/src/search.c
>     trunk/src/search.h
>     trunk/src/utils.c
>     trunk/src/utils.h
...

Regards,
Nick



More information about the Devel mailing list