Adds formatting to regexed data