Quote:
Originally Posted by yamusing
how would you match those tags you want to hide easily with regex? There would be different patterns of line of tags, regex doesn't seem to work well in bulk with strings that have different patterns.
"Animal, apple, Cat, cog, color, Dog, machine, Orange"
"apple, Cat, wine, color, Dog, water, Orange"
"Blue: Dark(#6879cc), Cat, color, Dog, RPM, size, Weight:heavy"
With these strings is there somehow a way which you would you bulk capture the tags "Orange", "Cat", "Water", Weight:heavy", "color" all in one go?
|
Two ways to do it.
First way, and what I would do, is "mark" the tags using Manage Tags then move them using bulk S&R. By "mark" I mean add a prefix to the tags you want to move, for example !!!. Then using S&R search source field "tags" for "^!!!(.*)$" (no quotes) with a replacement of \1, destination field the new column. Next do a second pass to delete the tags from the tags column. Same source field, same search pattern, "replace with" and "destination field" are empty. I like this approach because I can in one scan through the tags manually choose the ones to move.
Second way, OK if there aren't too many of them, is to use regex alternation. Search tags for "^(Orange|Cat|Water|Weight:heavy|color)$" , replacement \1, destination field the new column. Next do a second pass to delete the tags from the tags column. Same source field, same search pattern, "replace with" and "destination field" are empty.
Note that S&R processes multiple-item fields such as tags item by item, not as a single line. The order of the items is not important. When using a destination field different from the source, S&R copies the value, which is why you need two passes.