Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to compare two sentences(Para's)
#1
Not Solved
I need to compare expected and actual values which is nothing but two paragraphs.
Is there a best way experts suggest to do this?

I have been using the strcomp built in function but the problem I am seeing is it always results in "-1" as the two paras differ by spaces per my understanding.
I did a diff between these two I do not see any difference in text but again I cannot make out if there is any extra space in one para between any of the two words.

I am thinking there might be a better way to debug this as I am tired looking at the text differences which I couldn't find and now I hae to look at Space difference between each words... This looks to be quite impossible for me as there are like 100 words in one para.

I haven't used wdiff.exe , not sure how this works.Any ideas?

Any help/ideas appreciated.
Reply


Messages In This Thread
How to compare two sentences(Para's) - by bostonma - 03-07-2009, 03:51 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Compare 2 image files in Beyond Compare through QTP arpan 0 3,988 10-16-2013, 02:39 AM
Last Post: arpan
  compare 2 pdf files maktha1 0 2,532 11-17-2011, 07:13 AM
Last Post: maktha1
  Can we compare two documents? test71 0 1,976 03-17-2008, 03:09 PM
Last Post: test71

Forum Jump:


Users browsing this thread: 2 Guest(s)