#1 2014-12-15 09:56

chuan0326
Member
Registered: 2014-12-15
Posts: 3

How to get rid of (), any string in any position

After feeling very convenient to use, thank you.
To ask you some questions, such as:
Admit (KTV) Terry Lin (Li Lin) .MPG

This arrangement is the song _ singer, is there any way to change
Terry Lin _ admit .mpg

What is the method to get rid of at any position in line with the string
For example, I want to get rid of this (), any string in any position

Offline

#2 2014-12-15 21:49

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,370

Re: How to get rid of (), any string in any position

Normally, to get rid of "(...)" everywhere you can use Strip rule.

But in your case you need to use the following rules:
1) RegEx: Replace expression "\(.*?\)" with "_" (skip extension)
2) Strip: Strip trailing characters " _" (skip extension)
3) Rearrange: Split by exact pattern of delimiters " _ ", New pattern "$2 _ $1" (skip extension)

Input:
  Admit (KTV) Terry Lin (Li Lin) .MPG
Output:
  Terry Lin _ Admit.MPG

Offline

#3 2014-12-16 14:01

chuan0326
Member
Registered: 2014-12-15
Posts: 3

Re: How to get rid of (), any string in any position

First of all, thank you for your guidance.
Sorry, wrong is following as the last son.

Admit (KTV) Terry Lin (Li Lin)  .MPG

2) Strip: Strip trailing characters " _" (skip extension)
3) Rearrange: Split by exact pattern of delimiters " _ ", New pattern "$2 _ $1" (skip extension)

I will not be set, as shown.

ipKRO4n.jpg

dWMgAtB.jpg

rmnmuVC.jpg

8GUoPPJ.jpg

Also, if you want to change this format more

KTV-Mainland singer Zhang Yiwen --- next life you have to find (MV)

File name is not (), setting an arbitrary string anywhere screening

Thank you

Last edited by chuan0326 (2014-12-16 16:23)

Offline

#4 2014-12-17 00:07

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,370

Re: How to get rid of (), any string in any position

Unfortunately, I don't understand what you are saying...

By the way, you need to use spaces in both " _" and " _ " patterns, which you don't seem to have in your rules.

Offline

#5 2014-12-17 00:45

chuan0326
Member
Registered: 2014-12-15
Posts: 3

Re: How to get rid of (), any string in any position

den4b wrote:

Unfortunately, I don't understand what you are saying...

By the way, you need to use spaces in both " _" and " _ " patterns, which you don't seem to have in your rules.

Sorry, I mean yes.
1.For example: xxx_xxxxx-xxxx-.mpg
    string xxxx stands for "string", screened at any place at any of, and "_" and "-"
    How to set

2.Any other way anywhere in any Chinese filter string
   Trouble illustration

Thank you again

Last edited by chuan0326 (2014-12-17 03:09)

Offline

Board footer

Powered by FluxBB