How to Remove Parenthetical String

A swapping-ground for Regular Expression syntax

How to Remove Parenthetical String

Postby dalezjc » Mon Dec 05, 2022 2:52 am

I have some music filenames that look like this:

The Eagles - Hotel California (Remastered)

and I just want to remove the entire parenthetical string. I'm a noob at Regex, but here's what I have for an regex:

Code: Select all
\(\w.*\)


Obviously it's wrong, but after going through your PDF doc, I'm more confused. Any help is appreciated!

Thanks,
Dale
dalezjc
 
Posts: 2
Joined: Mon Dec 05, 2022 2:46 am

Re: How to Remove Parenthetical String

Postby LeoL30 » Mon Dec 05, 2022 5:24 pm

I'm new this this as well. But I asked the same question a while back

Code: Select all
Match: (.*)(\(.*\))
Replace: \1
LeoL30
 
Posts: 5
Joined: Mon Dec 05, 2022 4:37 pm

Re: How to Remove Parenthetical String

Postby dalezjc » Mon Dec 05, 2022 6:35 pm

LeoL30 wrote:I'm new this this as well. But I asked the same question a while back

Code: Select all
Match: (.*)(\(.*\))
Replace: \1


Thanks! Worked great.

Dale
dalezjc
 
Posts: 2
Joined: Mon Dec 05, 2022 2:46 am


Return to Regular Expressions


cron