patterns in replace succeed only if complete