community fix in pregreplace