Hongmu Notes

📇 Text line count statistics

Paste multiple lines of text to count the total number of lines, non-blank lines, blank lines and number of valid characters; when each line contains a mobile phone number or entry, the number of lines is the number of entries.

Text line count statistics

Total number of rows0
non-blank line0
blank line0
Valid number of characters0

Statistical rules: The number of statistical lines is divided according to line breaks, and the line break at the end will not count as an extra line; when each line contains a mobile phone number, email address, or entry, the number of lines is the number of entries; blank lines are listed separately, and the number of valid characters does not include line breaks and spaces.

Instructions for use

Paste the content into the input box above line by line, and the four numbers will be updated instantly: the total number of lines is divided by line breaks, and a single line break at the end will not count as an extra line; non-blank lines only count lines with characters after removing the blanks; empty lines are listed separately to facilitate checking the typesetting; the number of effective characters is accumulated after removing the blanks from each line, reflecting the actual content amount. The most common usage is to put each mobile phone number, email address or order number on a separate line. At this time, the number of non-blank lines is the number of entries, which can be directly checked with the number of entries exported from the source system. Statistics are completed locally in the browser and are not uploaded or retained.

✅ How to check the results

  • Three lines of text with a blank line in between, the total number of lines should be 3, non-blank lines 2, blank lines 1
  • Add a newline at the end, the total number of lines should not change
  • The number of non-empty rows should be equal to the number of source data

🔒 Data and privacy

Statistics are completed locally in the browser. Inputs and results are not uploaded or retained, and will be cleared when the page is refreshed.

Data row count statistics

Paste the table data and want to confirm how many records there are.

When copying data from a table or system list, each row is a record, so the number of non-empty rows is equal to the number of records. When checking, look at the two numbers side by side: the number of exports displayed by the source system should be consistent with the number of non-blank lines on this page; if the page is too small, it means that lines were missed during copying; if it is too large, it is often because there is an invisible line break in the content, which splits a record into two lines. This kind of problem is difficult to detect with the naked eye, but it is clear with numerical comparison.

  • The number of non-blank lines is the number of records
  • Direct comparison with the number of items exported from the source system
  • The long bias is usually caused by invisible line breaks
  • Suitable for quick verification before warehousing

If you find that the number of records is inconsistent, it is recommended to check the number of blank rows first: an abnormally large number of blank rows means that blank rows are mixed in the data. This situation will cause blank records to appear in downstream processing; clear the blank rows and count again, and the two numbers will usually be aligned.

All keywords and tutorials 12

❓ FAQ

Why do I have more entries than I actually have??
Most likely, there is an invisible line break in the content, splitting a record into two lines; just clean it up and re-count it.
What should I do if the number of items is less than the actual number??
Check whether the last few rows of the table have been missed, copy again and check the number of non-empty rows.
How to make statistics after copying the table?
After the table is copied, each row is one, and the number of non-empty rows is the number of records, which can be directly checked with the number of rows in the source table.
var str = $(this).val();