in reply to Help with Regex

m/(\w+\.(2048|512)).*renewed|revoked/
is similar to
m/(\w+\.(2048|512)).*renewed/ or m/revoked/
because of the precedence of the vertical bar. You want (I think):
m/(\w+\.(2048|512)).*(renewed|revoked)/

-- Randal L. Schwartz, Perl hacker