consolidate both REPLACE regex into 1