mc/lib/search
Andrew Borodin 5ecf12483a Ticket #2952: search: fix zero-length substitution.
Problem:
Suppose you want to replace a substring in some file names with another,
so you do a File Rename operation with source pattern:

*OLDSTRING*

and target pattern:

\1NEWSTRING\2

If OLDSTRING occurs inside a filename, it is replaced correctly, but if
at the beginning or end of the filename, the corresponding zero-length
wildcard match is replaced by literal \1 or \2, respectively.

Expected
Wildcards that match a zero-length substring should be substituted with
an empty string.

Thanks boris<> for the original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-01-14 09:50:50 +03:00
..
glob.c Fix name of FSF in all *.c files. 2014-02-28 13:33:17 +04:00
hex.c Fix name of FSF in all *.c files. 2014-02-28 13:33:17 +04:00
internal.h (mc_search__run_regex): optimization 2013-10-04 09:11:05 +04:00
lib.c Fix name of FSF in all *.c files. 2014-02-28 13:33:17 +04:00
Makefile.am PCRE_CFLAGS are CPPFLAGS, actually. 2012-12-18 16:27:49 +04:00
normal.c Fix name of FSF in all *.c files. 2014-02-28 13:33:17 +04:00
regex.c Ticket #2952: search: fix zero-length substitution. 2015-01-14 09:50:50 +03:00
search.c Massive use of MC_PTR_FREE macro. 2014-09-02 15:32:36 +04:00