Search and replace after and before

Advanced Renamer forum
#1 : 03/12-18 02:18
Fadi
Fadi
Posts: 1
Shoes-adidas_arena_edition_m_34_TH.gif

Hi All,
The above is a sample image name, I need to remove the text after the (-) and before (_TH)
Basically I need to search for the (-) and locate the position and search for the (_TH) and locate the position and remove any thing in between.
(So I need to remove "adidas_arena_edition_m_34")
Any idea how that can be done?

Thanks very much


03/12-18 02:18
#2 : 04/12-18 00:35
Locoeskimo
Locoeskimo
Posts: 2
Reply to #1:
i used remove pattern preset. that worked great for me


04/12-18 00:35
#3 : 14/12-18 11:32
Steve
Steve
Posts: 2
Reply to #2:
what is this preset?


14/12-18 11:32
#4 : 14/12-18 20:23
David Lee
David Lee
Posts: 106
Reply to #3:
Steve: Locoeskimo means the "Remove pattern" method. I think that you really should read the User Guide before asking such fundamental questions!

Hint: Click "Help" -> "Getting started..."


14/12-18 20:23 - edited 14/12-18 20:26
#5 : 15/02-19 14:49
_H_
_H_
Posts: 8


15/02-19 14:49
#6 : 15/02-19 15:34
David Lee
David Lee
Posts: 106
Reply to #5:
That is stupidly complicated for such a simple problem!

All that is required is:

Replace "-.*_" with "-_"
with "Use regular expressions selected".

Pleased stop posting all your suggestions as images - I'm sure that I'm not the only person who finds this extremely irritating!


15/02-19 15:34
#7 : 16/02-19 22:04
L B
L B
Posts: 46
Reply to #5:

Not using ARen's very simple native methods to achieve this... Oi Vey! Defeats the purpose of installing the app if you're not gonna use the app's features, ya know...

Replace method:

Text to be replaced = -.*_TH$
Replace with = -_TH
Use Regular Expressions = Ticked

P.S.: Posting images is helping no one. If you really want to help the person asking for help and are confident in your solution, post in a way they can copy-paste directly into ARen.



16/02-19 22:04 - edited 16/02-19 22:07