I'd like to use PCRE to take a list of URI's and distill it.
Start:
http://abcd.tld/products/widget1
http://abcd.tld/products/widget2
http://abcd.tld/products/review
http://1234.tld/
Finish:
http://abcd.tld/products/widget1
http://1234.tld/
Any ideas, dear members of StackOverflow?