regex patch