update closure regex