I have a string
Casperfoo DataOps <casperf@domain .com>;Booya Support <iptsupport@domain .com>; Tripped Support <Tsupport@domain capital.com>; Smith, Joe: IB Reference Data (NYK) <joe.smith@domain .com>; Johnson, Walter: IB Reference Data (PUN) <walter.johnson@domain .com>;
and I'd expect this to work
cat /tmp/foo | perl -nle 'print /\<(\w+)\>/'
but it does not. All I want is the string between the < and the >. I don't need the crappy outlook aliases - just the smtp addresses.
This is the expected output
casperf@domain.com
iptsupport@domain.com
Tsupport@domaincapital.com
joe.smith@domain.com
walter.johnson@domain.com