Comparing paragraphs of text
I'm looking to compare one paragraph of text to another and output any words that don't appear in the original paragraph. Both are similar but one has additional words written into it and I just need to output these extra words if that makes sense.
Any help with the general code or pointers would be much appreciated!!
All the best,
1. Collect the text information as 2 separate arrays.
2. Sort the arrays.
3. Loop through one array while comparing contents of the other.
4. Save any non-duplicates found between the 2 arrays.
Provide the paragraph information in some HTML code example.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread