Replace String - choosing part of the string

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Replace String - choosing part of the string

Re: Replace String - choosing part of the string

by Lowlander » Fri Mar 31, 2023 8:11 am

You can either filter out files that include [ or [Disc, so only files without it are shown. Then you edit those files.

Re: Replace String - choosing part of the string

by svillardi » Mon Mar 27, 2023 4:14 pm

How would this help me bunch the OR statements or target "Disc 2" without targeting "[Disc 2]"?

Re: Replace String - choosing part of the string

by Lowlander » Mon Mar 27, 2023 12:01 pm

Replace String can do the replacing: https://www.mediamonkey.com/addons/brow ... -string-3/

Filters or AutoPlaylists should be able to filter out files with [: https://www.mediamonkey.com/wiki/WebHel ... ilelisting

Re: Replace String - choosing part of the string

by IanRTaylorUK » Mon Mar 27, 2023 12:05 am

I would probably use a Collection / View in the first instance - particularly if a regular activity.

You don't mention which field has the "Disc x" in or where it is in relation to other text in the field.

Collections can have multiple criteria so you can deal with text at start / end / middle providing spacing is consistent.

This is why I like Collections as you can evolve your criteria and check to see if results are as expected.

Again, many of these editing tasks are best handled with RegExp / MMW4 at the moment.

Replace String - choosing part of the string

by svillardi » Sun Mar 26, 2023 4:22 pm

Hi. Is there a way to replace Disc 1 with [Disc 1] without replacing [Disc 1] with [[Disc 1]]?

Also, is there a way to search for multiple OR statements for the string, such as:

Replace "disc 1" or "Disc 1" or "Disc1" or "disc1" or "Disk 1" or...... ---> with [Disc 1]?

Top