Text Cleanup

Extract URLs from Text

Find and list all website links buried in a block of text.

Explanation

Scans text for patterns starting with http:// or https:// and extracts them to a new list.

Examples

Content with Links
Input
Check vaima.co and https://google.com for more info.
Output
https://google.com

Code Examples

JavaScript (Regex)
const urls = input.match(/https?:\/\/[^\s]+/g);

Try it Now

💡 Tips

  • Use the /g flag to find all occurrences
  • Can be extended to find "www." links as well
  • Useful for competitive analysis or content audits

⚠️ Common Pitfalls

  • Trailing punctuation (like periods) might be accidentally captured