ETEvoraTools
Text Analysis

Extract URLs

Extract URLs searches for http:// or https:// followed by characters until whitespace, <, >, double quote, or apostrophe. Exact matches are deduplicated in first-seen order. The regex can retain trailing periods, commas, closing parentheses, or other prose punctuation; it does not parse or normalize URLs, support protocol-relative/bare domains, validate hosts, follow redirects, check status, detect phishing, or establish safety.

Runs locally — files stay on your device
Quick answer

Are trailing punctuation marks removed?

Not generally.

URL-looking text needs parsing and context cleanup

A regex can find candidates, but balanced punctuation, URL grammar, internationalized hosts, and reachability require parsing and network checks.

How it works

A global HTTP(S) regex collects substrings and Set removes exact repeats.

Key concepts

Only HTTP(S)

ftp, mailto, //host, and example.com are omitted.

Exact dedupe

Fragments/case/encoding variants remain separate.

When to use it

  • Extract obvious absolute web-link candidates.
  • Deduplicate exact links from plain text.
  • Prepare a list for later validation.

When not to use it

  • Do not treat output as safe or reachable.
  • Do not expect bare domains or mailto links.
  • Do not use without reviewing trailing punctuation.

Worked examples

Simple

Input
Visit https://example.com/a
Expected output
https://example.com/a

Stops at whitespace.

Sentence

Input
See https://example.com.
Expected output
May include final period

Period is allowed by regex.

Bare domain

Input
example.com
Expected output
No match

Scheme required.

Common mistakes

Opening untrusted links

Extraction provides no safety. Correction: Validate destinations securely.

Ignoring punctuation

Captured URL may be malformed. Correction: Parse and trim contextually.

Assuming normalization

Variants remain. Correction: Canonicalize with URL rules.

Best practices

  • Review every candidate.
  • Parse with a URL implementation.
  • Use safe browsing/network controls before fetching.

Related operations and differences

Add Prefix to Every Line

Choose Add Prefix to Every Line when you need to add the same prefix before every line.; use Extract URLs specifically for extract urls.

Add Suffix to Every Line

Choose Add Suffix to Every Line when you need to add the same suffix after every line.; use Extract URLs specifically for extract urls.

Capitalize Every Word

Choose Capitalize Every Word when you need to capitalize the first character of every word.; use Extract URLs specifically for extract urls.

Extract Email Addresses

Choose Extract Email Addresses when you need to find unique email addresses in text.; use Extract URLs specifically for extract urls.

Line Counter

Choose Line Counter when you need to count the number of text lines.; use Extract URLs specifically for extract urls.

Lowercase Converter

Choose Lowercase Converter when you need to convert every letter to lowercase.; use Extract URLs specifically for extract urls.

Limitations and privacy

  • HTTP(S) regex candidates and exact Set only; no URL parse, punctuation balancing, normalization, bare/protocol-relative schemes, status, redirects, DNS, reputation, phishing, or safety validation.

The text is analyzed locally in this browser and is not uploaded by the tool.

Frequently asked questions

Are bare domains found?

No.

Are duplicates removed?

Exact duplicates are.

Are URLs opened?

No.

Can punctuation be included?

Yes.

References