updated regex replace to timeout