I try a different way: Almost all the characters are the same, but there is only white space and newlines. No matter if its first names, surnames, web pages, etc. But let say input and newlines (<textarea>
):
google.com yahoo.com
bing.com google.com
translate.google.com bing.com/translator phphelp.com
news.yahoo.com twitter.com twitter.com/home
instagram.com/direct/inbox
twitter.com/home
instagram.com/direct/inbox/
instagram.com/direct/inbox/
Here is output (unique, sort, newlines and white space):
bing.com
bing.com/translator
google.com
instagram.com/direct/inbox
instagram.com/direct/inbox/
news.yahoo.com
phphelp.com
translate.google.com
twitter.com
twitter.com/home
yahoo.com
In the real time, I have a bunch of random web pages on input, not only few web pages. Does it make sense, or no?
Btw, I am not English