type.inbound
and sender.email.email == "orders@oe1.target.com"
and any(map(html.xpath(body.html, '//h1[contains(@class,"ship-address")]/span').nodes,
.display_text
),
regex.icontains(., '[a-z]{2}\s[ilo0-9]{5}(?:-[ilo0-9]{4})?\s*$')
and regex.icontains(.,
'\+?(?:[ilo0-9]{1}.)?\(?[ilo0-9]{3}?\)?.[ilo0-9]{3}.?[ilo0-9]{4}',
'\+?(?:[ilo0-9]{1,2})?\s?\(?\d{3}\)?[\s\.\-⋅]{0,5}[ilo0-9]{3}[\s\.\-⋅]{0,5}[ilo0-9]{4}'
)
)
Playground
Test against your own EMLs or sample data.