Update help for multiple regex matches vs groups

This commit is contained in:
Juarez Rudsatz 2022-09-26 14:52:43 -03:00
parent 0910d4cb91
commit 6c9507cd97
1 changed files with 5 additions and 3 deletions

View File

@ -402,8 +402,11 @@ pub fn build_app() -> Command<'static> {
'{//}': parent directory\n \
'{.}': path without file extension\n \
'{/.}': basename without file extension\n \
'{<num>}': <num> is the regex group substitution index for the pattern matched \n\n\
If no placeholder is present, an implicit \"{}\" at the end is assumed.\n\n\
'{N}': text matched by the N-th group in the first pattern ocurrence. Text outside groups are discarted.\n\
'{M.N}':text matched in the M-th pattern ocurrence by the N-th group over the the path or filename.\n\n\
Obs:\n
- Using 0 for M/N substitutes by the text from all groups or all ocurrences respectively.\n\
- If no placeholder is present, an implicit \"{}\" at the end is assumed.\n\n\
Examples:\n\n \
- find all *.zip files and unzip them:\n\n \
fd -e zip -x unzip\n\n \
@ -435,7 +438,6 @@ pub fn build_app() -> Command<'static> {
'{//}': parent directory\n \
'{.}': path without file extension\n \
'{/.}': basename without file extension\n \
'{<num>}': <num> is the regex group substitution index for the pattern matched \n\n\
If no placeholder is present, an implicit \"{}\" at the end is assumed.\n\n\
Examples:\n\n \
- Find all test_*.py files and open them in your favorite editor:\n\n \