Fixes #2057 (broken internet archive links)

I combined all the negative lookbehind stuff and added a check for '/' (I'm no regex guru, but it works). Unit tests pass as well.