Extract Mentions

Extract @mentions from text.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

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

1
Step 1
Paste the text into Input.
2
Step 2
Press Run.
3
Step 3
Review and copy the mentions.

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?
Paste the text and press Run.
Why does a mention end with a dot?
Dots are valid inside handles, so a final full stop is captured. Delete it by hand.
Why did it return part of an email?
Anything starting with @ is a match. Remove emails from the text first.

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 YouTube
  • Learn JSON - Full Crash Course

    freeCodeCamp.org

    Structured text formats often sit next to plain-text tools.

    Watch on YouTube