Crop Including Word

Bulk Rename Utility How-To's

Crop Including Word

Postby knglerxst » Wed Mar 10, 2021 7:48 pm

How do I crop filenames with different lengths starting from and including a particular word? I'm assuming I'll have to use RegEx since Remove only allows cropping before and after a word, but the syntax is kind of confusing.
knglerxst
 
Posts: 2
Joined: Wed Mar 10, 2021 7:40 pm

Re: Crop Including Word

Postby knglerxst » Wed Mar 10, 2021 8:36 pm

Nevermind. I figured it out. I used

Match: (.+)\bword to be matched
Replace: \1
knglerxst
 
Posts: 2
Joined: Wed Mar 10, 2021 7:40 pm

Re: Crop Including Word

Postby Luuk » Thu Mar 11, 2021 12:20 pm

Yes, this regex is using the best way!! Also can use \bWord\b to forbid "Wordy", but Im thinking you needed it like that anyways.
Luuk
 
Posts: 691
Joined: Fri Feb 21, 2020 10:58 pm


Return to How-To