Tickets #4525, #4526: mcedit: fix replacement using regular expressions.