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@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
On Tue, 9 Mar 2010 17:32:56 +0000 Nick Treleaven nick.treleaven@btinternet.com wrote:
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).
I forgot to mention that \n (newline) is now matched by regular expressions, which is handy.
Regards, Nick