I need to compare the below strings. The problem I have is the url in both strings will be different every time e.g:
www.google.com
http://www.google.com
google.co.uk!
So contains cannot match the strings because of the URL not matching.
String1 = "This is my string http://www.google.co.uk and that was my url"
String2 = "this is my string google.gr and that was my url"
So I basically want to compare the contents of the string minus the URl, each string can contain different text each time so looking for the URL at the same location each time will not work.
I have searched extensively on here for an answer to this problem, but I was unable to find a working solution.
Thanks in advance