Add all urls to an string[] url_array and create an empty List<string> outputlist
then do a foreach with your url_array and check if your outputlist contains Regex.match(currenturl,"[^/]*"), use anotehr foreach loop for that. If there are no matches add the url to the outputlist.
This will do...