regex & formatting