I'm getting URLS with removed forward-lashes and I basically need to correct the urls inside of a text file.
The URLs in the file look like this:
https:www.ebay.co.ukitmReds-Challenge-184-214-Holo-Shiny-Rare-Pokemon-Card-SM-Unbroken-Bonds-Rare124315281970?hash=item1cf1c4aa32%3Ag%3AXBAAAOSwJGRfSGI1&LH_BIN=1
I need to correct it to:
https://www.ebay.co.uk/itm/Reds-Challenge-184-214-Holo-Shiny-Rare-Pokemon-Card-SM-Unbroken-Bonds-Rare/124315281970?hash=item1cf1c4aa32%3Ag%3AXBAAAOSwJGRfSGI1&LH_BIN=1
So basically I need a regex or another way that will edit in those forwardslashes to each URL within the file and replace and the broken URLs in the file.
I eventually came up with this. It's a bit clumsy but it does the job fast enough.