Hongmu Notes

✖️ Text intersection takes the same calculation

Paste the two lists in separately, and the common items on both sides will be automatically listed and output in the order of the first list.

Text intersection takes the same calculation

There are a total of the same number of items 0

Instructions for use

Put two lists in the two boxes, one for each line; after both are filled in, the results will be updated automatically, no need to click a button. The result only lists common items on both sides, arranged in the order of appearance in "Text 1"; items that only appear in one copy will not be output. Empty lines are not included in the comparison, and the same item is only output once. The comparison is performed on the entire line as it is, and differences in capitalization and spaces will be considered different contents. Therefore, when an item is missing from the result, please check whether there are spaces at the end of the line or differences in full-width and half-width. All comparisons are done locally in the browser and are not uploaded or saved.

✅ How to check the results

  • The number of common items should not exceed the length of the shorter column
  • The items in the extraction results should be searchable in both lists.
  • An empty result means that the two lists have no common items.

🔒 Data and privacy

The comparison is done locally in the browser, and the two lists and results are not uploaded or saved, and will be cleared when the page is refreshed; please clear the clipboard after copying the results.

Find intersection in batches

When the list is long, block comparison is more reliable than pasting it all at once.

📌 Three benefits of block comparison

First, the burden on the browser is small: with two text boxes with tens of thousands of lines, scrolling and editing will slow down, and the operation will be smoother after being divided into blocks. Second, the results are easy to read: there may be thousands of common items, and it is difficult to remember them at one time. After being divided into blocks, the number of each block is moderate. The third is to facilitate verification: when dividing into blocks, it is usually divided into numbered intervals, and each block can be independently verified. The recommended chunking granularity is 2000 to 5000 rows.

  • Divide into blocks by 2000~5000 lines
  • The two lists are split according to the same rules
  • Each block of results is saved separately and finally merged

🧭 How to merge and check block results

Save the common items block by block and then splice them in order, and use "the sum of the numbers of each block should be equal to the number of common items as a whole" for cross-validation. If the two are inconsistent, it means that the segmentation range of a certain block overlaps or is omitted. Just go back to the segmentation rules to check.

All keywords and tutorials 12

❓ FAQ

Will the guild be stuck if I have thousands of dollars?
Usually not; if there are tens of thousands of lines, it is recommended to compare in blocks, so that editing and scrolling will be smoother.
How to check the total after dividing into chunks
The sum of the number of common items in each block should be equal to the total number of items; inconsistency indicates overlap or omission in segmentation.
How many long lists can be compared at one time?
Thousands of lines can be compared smoothly; tens of thousands of lines are recommended to be processed in chunks to make the browser response more stable.