Replace matching spaces expression in regex