About the URL Extractor
A link in running text rarely ends cleanly. It is followed by a full stop, wrapped in brackets, quoted, or glued to Markdown. The extractor finds anything starting with http:// or https://, in any letter case, and optionally anything starting with www.. A www link only counts when the character before it is not a letter, digit, dot, at sign, slash or hyphen, so sub.www.example.com and addresses inside e-mails are left alone.
Each match ends at the first space or line break, at a closing square bracket, or at any of the characters < > " '. Sentence punctuation left on the end (full stop, comma, semicolon, colon, exclamation or question mark, a closing curly quote, an ellipsis) is trimmed off. A closing round bracket is trimmed only when the link has no opening bracket of its own, so (see https://example.com/a) comes out clean while a Wikipedia address ending in _(bar) survives intact.
Remove duplicates compares the exact text, so a link that differs by a trailing slash or by http versus https counts as a different link. Order can be left as found, sorted A to Z, or grouped by domain, and Domains only lists the lower-cased host name of each link instead of the full address. Plain domains typed without a scheme or www, such as example.com, are not picked up, and nothing is fetched or tested, so a dead link is listed like any other. For links inside HTML markup together with their anchor text, use the Link Extractor for HTML; for a quick pass with no options there is Extract URLs, and URL Validator checks whether a link you kept is well formed.
How to use
- Paste the text into the left box, or edit the sample chat log.
- Choose whether you want full links or domains only, and how they should be ordered.
- Untick Remove duplicates if you need every occurrence, or untick the www option if you only want http and https links.
- Copy the list or use Download to save it as a text file.
Common questions
- Why was a link I can see in the text not listed?
- Only text beginning with http://, https:// or www. is treated as a link. A bare name such as example.com is skipped on purpose, because ordinary writing contains many dotted words that are not addresses.
- How are full stops and brackets after a link handled?
- Trailing sentence punctuation is removed. A closing round bracket is removed only when the link contains no opening bracket, so addresses that really end in a bracket are kept whole.
- Does it check that the links work?
- No. It only finds text shaped like a link. Nothing is requested from the network.
- Can I get only the domains?
- Yes. Set List to Domains only. Each host name appears once, in lower case, with any www. prefix kept as written.
- Is my text uploaded anywhere?
- No. The search runs in your browser, so chat logs and server logs stay on your device.