Connect HomeMarketplaceComponentsCompare Text Documents

Compare Text Documents

Custom Activity

Custom Activity

Updated: October 7th, 2020

Published: September 15th, 2018

Downloads: 155

Language compatibility: Visual Basic

Community Support

Compare Text Documents

Custom Activity

Summary: 

Compare two blocks of plain text and efficiently return a list of differences.

Compare Text activity implements Myer's diff algorithm which is generally considered to be the best general-purpose diff.

Example:

Input:

  • Text1: "Hello World."
  • Text2 "Goodbye World."

Output:
  • List<KeyValuePair<string, string>> of differences is computed which describe the transformation of text1 into text2.
  • The first element specifies if it is an insertion (1), a deletion (-1) or an equality (0). The second element specifies the affected text.
  • Therefore the result for the above Text1 and Text2 is: [(DELETE, "Hello"), (INSERT, "Goodbye"), (EQUAL, " World.")]

Details

Benefits

There are many use cases especially in Legal processes.

Compatibility

UiPath V7

Dependencies

Macros: Page Properties, Status

Licensing

By clicking download you agree to the following license.