NBTExplorer icon indicating copy to clipboard operation
NBTExplorer copied to clipboard

Please add Regex support to text replacement

Open isaaclepes opened this issue 5 years ago • 0 comments

I have been trying to edit about 836 command blocks.

I am trying to remove the run tell portion from my sorter commands

Current: /execute if block ~ ~1 ~4 hopper{Items:[{id:"minecraft:oak_sign", Count:1b, Slot:0b}]} run tell @p Oak Sign Sorted Desired: /execute if block ~ ~1 ~4 hopper{Items:[{id:"minecraft:oak_sign", Count:1b, Slot:0b}]}

If I could have it search for all lines containing 'run tell' and truncate them after the last '}' using a regular expression, this would be done already. This function would be immensely useful to others, I imagine.

isaaclepes avatar May 22 '20 20:05 isaaclepes