Hi there,
I am trying to compare two strings and get the differenc
in vbscript.

Example: Str1="This is a test text"
Str2="This is a fine test text but a little long"
I like to compare str1 with str2 and get the difference.
Above example the difference will be "fine" and "but a
little long"
How do I do that? A sample code would be apprciable.

Thanks for your time

Jyoti

Re: string compare in asp by Kristofer

Kristofer
Sat Jun 05 02:25:42 CDT 2004

Try a newsgroup more relevant to your question, for example one about ASP.

One way to do this is to compare the strings word by word.

--
Regards,
Kristofer Gafvert - IIS MVP
http://www.ilopia.com - When you need help!


"jyoti" <muhammedrahman@hotmail.com> wrote in message
news:1850f01c44a36$cbbfca90$a001280a@phx.gbl...
> Hi there,
> I am trying to compare two strings and get the differenc
> in vbscript.
>
> Example: Str1="This is a test text"
> Str2="This is a fine test text but a little long"
> I like to compare str1 with str2 and get the difference.
> Above example the difference will be "fine" and "but a
> little long"
> How do I do that? A sample code would be apprciable.
>
> Thanks for your time
>
> Jyoti