Task: Detect URLs in Text with JavaScript
Task: Detect URLs in Text with JavaScript: a task in Terminal-Lego-15k (Harbor dataset). Create a JavaScript solution that detects and extracts URLs from text strings. You need to implement a URL detection function using regular expressions that can identify various URL formats including:
Part of PrimeIntellect/Terminal-Lego-15k.