HF RL Explorer

Task: Parse URLs in Ruby to Extract Main Domain

Task: Parse URLs in Ruby to Extract Main Domain: a task in Terminal-Lego-15k (Harbor dataset). Create a Ruby script that can parse any URL and extract the main domain without the www prefix. The script should handle various URL formats and return just the base domain (e.g., example.com ).

Part of PrimeIntellect/Terminal-Lego-15k.