I'm learning regular expressions and I'm having trouble extracting the domain from the email address. I have an email address: example@gmail.com. I need to use a regular expression to extract @gmail (along with the @ symbol). I should end up only getting example. I've already tried this:
your text
@(\w+)
and this
your text
(?<=@)[^.]+(?=.).*
but those expressions didn't work properly. I'd appreciate your help.