rewrite regex after advise