✂️ Text interception by column
Line by line, extract the middle section of the line according to the starting position and length.
Instructions for use
- Fill in the starting position and interception length and click "Start Processing"
- Positions are counted from 0, negative numbers count backwards from the end of the line
- Short lines will get empty results and the status line will give their line number
Extract the middle part of the number
When there is fixed content before and after the number, you can get a clean serial number by taking the middle section.
Number lengths are inconsistent
Numbers with different serial number digits cannot be taken directly by position. First, use substitution to make the prefix equal to the same width.
When the digits are consistent, the middle section is the most stable.
How to get the check digit
When the check digit is fixed at the last few digits, just set the length before the check digit.
After removing it, the serial number becomes a pure number for easy comparison.
Sort results
After taking out the pure serial number and sorting by value, there will be no problem of sorting disorder caused by different prefixes.
Before sorting, make sure there are no extra spaces.
Deduplication comparison
After taking the middle segments of the two batches of numbers, you can directly compare the difference sets to find out the new or missing number segments.
Mid-range extraction allows the comparison to only look at the numbers that actually changed.
Batch processing
The entire paragraph numbering is processed at one time, thousands of lines are completed instantly, and the line order remains unchanged.
Before processing, keep a copy of the original text for easy review.
All keywords and tutorials 12
❓ FAQ
- Will having letters in the middle have any impact?
- It does not affect, characters are taken according to position, and letters are also included in the position.
- Can the results be exported as a list?
- Yes, results can be exported to text files.