0

How can I compare two input strings and merge differences and get the result string like below with tools like diff?

e.g. When I have two strings

unix&linux stackoverflow unix&linux

and

UnixAndLinux stackexchange

I'd like to get a string

uUnix&AndlLinux stackoverflowexchange unix&linux
  • Why stackoverflowexchange but stackoverflowxchange. Try to explaine what you want in words. – Costas Aug 1 '16 at 8:10
  • And you say you have a couple of strings but want to use a tool "like diff". But tools like diff work on files not strings. So, what do you want? Your explanation is completely inadequate for any possible solution. – MAP Aug 1 '16 at 21:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.