updated handling of post-processing regexp