Removing Character to a noted symbol

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

Removing Character to a noted symbol

Postby wadstr69 » Sat Jan 15, 2022 10:06 pm

Would like to strip all characters before a special character eg Roger Miller - asdhgfk to asdhgfk so the characters Roger Miller - would be deleted
wadstr69
 
Posts: 6
Joined: Sat Jan 15, 2022 10:03 pm

Re: Removing Character up to a noted symbol/character

Postby wadstr69 » Sat Jan 15, 2022 10:50 pm

Would like to strip all characters before a special character eg Roger Miller - asdhgfk to asdhgfk so the characters Roger Miller - would be deleted, the artist can be a variety of artist in many songs. sometimes 100+
wadstr69
 
Posts: 6
Joined: Sat Jan 15, 2022 10:03 pm

Remove the first " - " and everything before " - "

Postby Luuk » Sun Jan 16, 2022 12:44 am

With RegEx(1) the "Match" and "Replace" can be like...
.+? - (.+)
\1
Luuk
 
Posts: 771
Joined: Fri Feb 21, 2020 10:58 pm

Re: Removing Character to a noted symbol

Postby wadstr69 » Sun Jan 16, 2022 11:27 pm

is there documentation to tell me what
With RegEx(1) the "Match" and "Replace" can be like...
.+? - (.+)
\1

Means, what I'm looking for is stripping of leading character up to "-" for example
01. Gary Morris - I'm so Lonesome
02. Garry Morris - 14 Carat Mind
03, Garry Morris - No one will ever know
04. Dolly Parton - Islands in the stream
05. Gene Watson - Take off Them Shoes
Would result in
I'm so Lonesome
14 Carat Mind
No one will ever know
Islands in the stream
Take off Them Shoes
wadstr69
 
Posts: 6
Joined: Sat Jan 15, 2022 10:03 pm

Remove the first " - " and everything before " - "

Postby Luuk » Mon Jan 17, 2022 4:55 am

Image

Yes, there is much documentations for learning the regex here... http://www.bulkrenameutility.co.uk/foru ... p?f=3&t=96
If only wanting to match 2 starting digits, followed by . or , and then a space, the "Match" and "Replace" would be...
^\d{2}[.,] .+? - (.+)
\1

But to only destroy the first "-" and everything before, Remove(5) uses "Crop"==Special, and to the right is *-
Or the RegEx(1) could use a "Match" like .*?-(.+) with a "Replace" like \1
Luuk
 
Posts: 771
Joined: Fri Feb 21, 2020 10:58 pm

Re: Removing Character to a noted symbol

Postby wadstr69 » Mon Jan 17, 2022 3:35 pm

Thanks for the help it worked and pointing me in the right direction
wadstr69
 
Posts: 6
Joined: Sat Jan 15, 2022 10:03 pm

Re: Removing Character to a noted symbol

Postby wadstr69 » Wed Jan 19, 2022 9:00 pm

Thanks for the previous help now I have a different problem
Original is
01 - Artist - Song
02 - Artist - Song2

I want
01 - Song
02 - Song2

Your assistance is very much appreciated
wadstr69
 
Posts: 6
Joined: Sat Jan 15, 2022 10:03 pm

Remove everything between first two " - "

Postby Luuk » Thu Jan 20, 2022 11:27 am

For the examples, can use a "Match" and "Replace" like...
^(\d{2} - ).+? - (.+)
\1\2
Luuk
 
Posts: 771
Joined: Fri Feb 21, 2020 10:58 pm

Re: Removing Character to a noted symbol

Postby wadstr69 » Thu Jan 20, 2022 3:34 pm

Perfect works like a charm thanks for being here
wadstr69
 
Posts: 6
Joined: Sat Jan 15, 2022 10:03 pm


Return to Suggestions