Text Extractor
Extract every URL, email address, hashtag, mention, number, IP or date from a block of text, deduplicated and sorted.
Pull every URL, email, hashtag, number, IP or date out of a block of text, deduplicated and sorted.
Found
Matches
2
Unique
2
https://devkittools.online/faq
https://example.com/pricing
Trailing punctuation is trimmed, because a URL at the end of a sentence picks up the full stop.
https://devkittools.online/faq
https://example.com/pricingAbout the text extractor
Getting every link out of a document, or every address out of a pasted list, is the kind of job that takes ten boring minutes by hand and two seconds with a pattern. It is also the kind of job where doing it by hand means missing one.
The patterns here are tuned for real text rather than for the specification. A URL at the end of a sentence has its full stop trimmed, an IP address has each octet range checked, and phone matching is deliberately loose because the alternative is missing half of them.
How to use it
- 1Paste the text you want to search.
- 2Choose what to extract.
- 3Turn deduplication and sorting on or off.
- 4Copy the results as a list or as JSON.
Questions
Why is a trailing full stop removed from URLs?
Because a link written at the end of a sentence picks it up, and the resulting address is broken. Closing brackets and commas are trimmed for the same reason.
Are the email matches guaranteed valid?
They match the shape addresses actually take. The full specification permits things almost nobody uses, and matching all of it produces more false positives than it prevents.
Why are some phone numbers wrong?
Phone matching is intentionally loose, because formats vary so widely that a strict pattern misses most real numbers. Check the results rather than trusting them.
Is my text uploaded?
No. Everything runs in your browser.