Extract Mentions
Extract @mentions from text.
About this tool
Paste text and press Run to list every @mention. Each one is returned with its @ sign, in the order found.
How to use
How it works
A mention is an @ followed by letters, digits, underscores or dots. Because dots are allowed, a full stop at the end of a sentence is captured with the name, and the domain part of an email address (the text after its @) is returned as a mention too.
Worked example
Handles and an email
- Input
- cc @jane_doe and @bob.smith. Email a@b.com
- Output
- @jane_doe @bob.smith. @b.com
- Walkthrough
- The sentence-ending full stop is attached to @bob.smith., and the email address contributes @b.com.
Limitations
- Trailing full stops are included.
- Email domains are matched as mentions; run Remove Emails first if that matters.
- Duplicates are kept.
Questions
How do I get all @mentions from text?
Why does a mention end with a dot?
Why did it return part of an email?
Features
- @ kept in output
- One mention per line
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
HTML in 100 Seconds
Fireship
Quick HTML mental model next to text transform tools.
Watch on YouTubeLearn JSON - Full Crash Course
freeCodeCamp.org
Structured text formats often sit next to plain-text tools.
Watch on YouTube
- RFC 3629 — UTF-8
IETF
UTF-8 rules behind character-counting tools.
- Unicode Normalization Forms
Unicode
Why seemingly identical characters break equality checks.