Regex to standardize output