How to match a @mention with and without suffix domain name ('@leïa' and '@Leïa@starwars.com' are valid) but without to get the last '.'?
Regex: /@([A-Za-z0-9_çéàèùâêîôûëïüÇÉÀÈÙÂÊÎÔÛËÏÜ@.]+)/ig
Sample:
@Luke is the brother of @Leïa@starwars.com, and they are the both children of @DarthVather.
Expected:
@Luke, @Leïa@starwars.com and @DarthVather (without the final '.')