added regex patch