Clean URLs to the base example.com instead of hxxp://www[.]example[dot]com/example2/
To use:
Save list of URLs into a text file one per line. Run the script and select the text file. The script with then run through and clean the list. The final product will be saved into a new text file titled URL Cleaned.txt.