Hello,
Any way to extract what's after the @(if any) and before the next . (if any)?
Examples:
host
host.domain.com
user@host
first.last@host
[email protected]
[email protected]
I need to get host in a variable.
Suggestions in Python? Any method is welcomed.
Thanks,
EDIT: I fixed my question. Need to match host and host.blah.blah too.