I am trying to extract a string between the two characters @ and : for the string:
test23@server:/var/
So, when I try to do something like,
@([^.]*):
or even
\@(\S+):
I get @server:
I just want both @ and : removed so I can get just the word server. Please help!