Remove #words attached

Bulk Rename Utility How-To's

Remove #words attached

Postby Alo99 » Sun Jul 27, 2025 2:29 pm

I want to remove hashtags # that words are next to the # with out removing the rest of the file name.

For example:

FROM :
2025 07 27 A #motivation #psycholgyfacts #psychology #english #habitsthatchangeyourlife #psychologyfacts .mp4

TO:
2025 07 27 A .mp4

This works I can do this but what I want to do is

FROM:
Modern Family - Phil Manipulates #shorts Haley And Alex .mp4

TO:
Modern Family - Phil Manipulates Haley And Alex .mp4

NOT:
Modern Family - Phil Manipulates.mp4

If I am in R3 and type in #* > Replace, it will delete the rest of the file line name. Not the hashtag and word beside it.

Is there a way for the above green line?
Alo99
 
Posts: 3
Joined: Sat Jul 19, 2025 1:54 pm

Re: Remove #words attached

Postby TheGhost78 » Sun Jul 27, 2025 2:37 pm

RegEx (1), tick v2:

Match:
(.+?)(?: #\w+)+(.*)
Replace:
\1\2
TheGhost78
 
Posts: 212
Joined: Fri Jul 19, 2024 11:25 am


Return to How-To