Use regex for replacement