Removing characters between symbols i specify

Would you like Bulk Rename Utility to offer new functionality? Post your comments here!

Removing characters between symbols i specify

Postby locking319 » Mon Jan 03, 2011 9:43 am

I've had trouble with files having names that include words inside symbols. I would love a Remove feature for removing characters inside symbols or characters i specify. I guess that the easiest way to put this as an example would be as follows:

I have a file named "random file [blah].txt"
I would like to specify that i would like to remove everything between [ and ] as to receive this as a result:
"random file [].txt" or even better, "random file .txt"

This is just a base idea and a lot can be made from that point forward, but at least i would love that feature on future releases of this utility, thanks a lot and keep up the wonderful work.
locking319
 
Posts: 2
Joined: Mon Jan 03, 2011 9:34 am

Re: Removing characters between symbols i specify

Postby Admin » Tue Jan 04, 2011 11:00 am

Hi, it can be done using the regular expression field. thanks
Admin
Site Admin
 
Posts: 1484
Joined: Tue Mar 08, 2005 8:39 pm

Re: Removing characters between symbols i specify

Postby locking319 » Tue Jan 04, 2011 8:10 pm

Yeah, i noticed that you had fixed the "special" under the remove category in the last version, thanks for that. :mrgreen:
locking319
 
Posts: 2
Joined: Mon Jan 03, 2011 9:34 am

Re: Removing characters between symbols i specify

Postby Stefan » Sat Feb 12, 2011 6:19 pm

COOL, "Remove(5) Crop Special" can work with regex.


FROM:
"random file [blah].txt"
TO:
"random file .txt"
DO:
"Remove(5) Crop Special" > "[*]"




To get rid of the additional blank
just check "Remove(5) D/S" too

or use crop and include the blank as parameter:
FROM:
"random file [blah].txt"
TO:
"random file.txt"
DO:
"Remove(5) Crop Special" > " [*]"



BTW:
FROM:
"random file [blah].txt"
TO:
"random file blah.txt"
DO:
"Remove(5) check "Sym." and check "D/S" too.




And to empty between [ and ]...

FROM:
"random file [blah].txt"
TO:
"random file [].txt"
DO:
RegEx(1)
Match: (.*\[)(.*)(\].*)
Repla: \1\3


HTH?
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU


Return to Suggestions