mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
5ecf12483a
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> |
||
---|---|---|
.. | ||
glob.c | ||
hex.c | ||
internal.h | ||
lib.c | ||
Makefile.am | ||
normal.c | ||
regex.c | ||
search.c |