Beautify regex