fix regex concerning default variables