I've been trying to create a Regex to parse mentioned usernames from Instagram captions.
@men.tion._, @men.tion._, @men.tion._., (@men.tion._), and (@men.tion._.) should all return men.tion._. Feel free to correct me if this is incorrect — I haven't been able to find any information on how Instagram parses the usernames itself.
So far, I've come up with (?<=(^|\W)@)(?<username>[\w\._]+)(?=(\.|\W)), but it doesn't quite work.