Couldn't you just use the non-whitespace character to capture everything
before and after the @ symbol?

s/^.*\s(\S+@\S+)\s.*$/$1/

Reply via email to