A regex file renamer/mover
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update README.md

authored by

Summertime and committed by
GitHub
82110dac 65542451

+32
+32
README.md
··· 14 14 Re-Options: 15 15 -g, --global Replace all matches instead of just the first 16 16 --fstring Treat the REPLACEMENT as an f-string 17 + f-string Mode: 18 + m0: the whole match, match.group(0) 19 + m#: m1,m2,etc, each regex group in turn, match.group(#) 20 + name: matches against (?<name>...) in the regex 21 + m: the match object itself, including all its attributes 22 + ``` 23 + ## Examples 24 + ``` 25 + multimv -n re -g '\.(?![^.]+$)' ' ' \ 26 + 'dumb.movie.[1080p].[5.1].[etc].mkv' 27 + 28 + - 'dumb.movie.[1080p].[5.1].[etc].mkv' 29 + + 'dumb movie [1080p] [5 1] [etc].mkv' 30 + 31 + 32 + multimv -n re -g ' *\[.*?\]' '' \ 33 + 'dumb movie [1080p] [5 1] [etc].mkv' 34 + 35 + - 'dumb movie [1080p] [5 1] [etc].mkv' 36 + + 'dumb movie.mkv' 37 + 38 + 39 + multimv -n re --fstring '\d+' '{int(m0)+1:0>{len(m0)}}' \ 40 + page000 page001 page002 index 41 + 42 + ~ index 43 + - page002 44 + + page003 45 + - page001 46 + + page002 47 + - page000 48 + + page001 17 49 ```