in reply to Re: diff of two strings
in thread diff of two strings
chaos_cat,
Thank you very much for taking time to "play" with my problem and also for the patience with my incomplete requirements.
Some clarifications:
- the new words will not modify the position in the string of the words that follow (this is true for the original string as well as for the modified string).
e.g.
----
original: Perlmonks is ..................... the best [perl] ...................[community]
modified: Perlmonks is <one> <of> the best [community] <of> [perl] <users>
Note: "the" is the 3rd word in the original and it is considered to be the 3rd word in the modified string also because "<one>" and "<of>" are new words and should be ignored (will not increase the position value)
while
original: ..... the best [perl] ....................[community]
modified: ... the best [community] <of> [perl] <users>
Note: "perl" and "community" should be marked as changed/moved, because they changed the position in the sentence.
words ranks:
------------
original: ......1.......2....................3....4.....[5].............[6]...........
modified: ....1.......2..<7>..<8>...3....4.....[6]...<9>...[5]......<10>.
Please let me know if you don't understant what I tried to explain above and I will explain it in different words.
Thanks a lot.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: diff of two strings
by chaos_cat (Scribe) on Jan 09, 2008 at 16:46 UTC | |
by flaviusm (Acolyte) on Jan 09, 2008 at 20:43 UTC | |
|
Re^3: diff of two strings
by lima1 (Curate) on Jan 09, 2008 at 08:43 UTC |