Need delete after |

Bulk Rename Utility How-To's

Need delete after |

Postby Razyel95 » Sat Nov 13, 2021 9:42 pm

Hello! I need help for delete original names and just leave the translated title. How I can remove the original title? and just leave the translated title? Hope someone can help me.

EX: Original Title #1 | Titulo Original #1.mkv
EX: Original Title #2 | Titulo Original #1.mkv
EX: Original Title #3 | Titulo Original #1.mkv

---------------------------------------------------------------------

EX: Título Original #1.mkv
EX: Título Original #1.mkv
EX: Título Original #1.mkv

NOTE: Both titles are separated by a " | "
Razyel95
 
Posts: 7
Joined: Tue Nov 09, 2021 2:44 am

Re: Need delete after |

Postby Admin » Sun Nov 14, 2021 4:44 am

RegEx (1)

Enable Simple

Match: %1 | %2
Replace: %2
Admin
Site Admin
 
Posts: 2343
Joined: Tue Mar 08, 2005 8:39 pm

Re: Need delete after |

Postby raywood » Sat Jan 15, 2022 2:36 am

I think this is my question too, but I'm not sure I understand the answer. I haven't used RegEx before.

I've got a filename like this:

Email to X (http angelfire.com.eml

I want to keep just this:

Email to X.eml

So I try entering this in the RegEx boxes:

Match: %1 ( %2
Replace: %1

But (a) it doesn't do anything and (b) I'm not sure how to "Enable Simple."

Great tool, BTW.
raywood
 
Posts: 5
Joined: Wed Oct 20, 2010 3:56 pm

Delete the first " (" and everything after

Postby Luuk » Sat Jan 15, 2022 3:52 am

Inside of RegEx(1) first to put a checkmark inside for "Simple", but also there should not be any space coming after the bracket.
Luuk
 
Posts: 690
Joined: Fri Feb 21, 2020 10:58 pm


Return to How-To