Updated regex patch