#1 2020-07-24 13:54

grepmoth
Member
Registered: 2020-07-24
Posts: 2

Remove hashtags from filename

How do I delete hashtags from filename?

Example:

Linkin Park #breaking #the #habit music video.mp4

to

Linkin Park music video.mp4

Any help would be appreciated.
Thanks.

Last edited by grepmoth (2020-07-24 13:55)

Offline

#2 2020-07-24 15:30

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,043

Re: Remove hashtags from filename

- - - delete hashtags (#something) from filename - - -


FROM:
Linkin Park #breaking #the #habit music video.mp4

TO:
Linkin Park music video.mp4


USE:
https://www.den4b.com/wiki/ReNamer:Rules:RegEx
Expression: #.+?\s
Replace:



Explanation:
Match # (#) following by one-or-more (+) of any sign (.), but non-greedy (?), till next space (\s)
Replace with nothing

For more see >> https://www.den4b.com/wiki/ReNamer:Regular_Expressions



HTH?


 


Please see HELP and MANUAL in Wiki for more info.
If ReNamer had helped you, please donate a coin to Denis or buy a Pro license for commercial use. (Lite vs Pro)

Offline

#3 2020-07-24 23:55

grepmoth
Member
Registered: 2020-07-24
Posts: 2

Re: Remove hashtags from filename

Thanks so much! It worked!

Offline

Board footer

Powered by FluxBB