in reply to Extract IP from email dataset?

What kind of IP addresses do you want to extract? IPv4? IPv6? and anywhere? Or just in some headers (or other contexts)? Did you already parse the mail somehow?

And what have you tried so far?

In case of doubt, look on CPAN, for example search for regexp IP (or regex IP).