Hongmu Notes

▶️ Text content batch replacement

Paste in the entire text, fill in the old content and new content, and replace all matching items with one click.

Text content batch replacement

Instructions for use

The first box at the top contains the entire text to be processed; the two boxes in the middle are filled with "Characters to be replaced" and "Characters after replacement" respectively. Leaving the latter blank means that the old content will be deleted directly; after clicking "Quick Replace", the result will appear at the bottom and can be copied with one click. Replacement matches exact words, is case-sensitive, and does not parse regular expressions; when the "character to be replaced" is empty, it will prompt and stop. All processing is completed locally in the browser and is not uploaded or retained.

✅ How to check after replacement

  • Search for old content in the results box. If you can't find it, it means the replacement is complete.
  • If there are still residues, check whether the uppercase and lowercase characters are consistent with the full-width and half-width characters.
  • Replacement is irrevocable. Please copy the original text for important text.

🔒 Data and privacy

The replacement is completed locally in the browser, and the input content and results are not uploaded or retained, and will be cleared when the page is refreshed. This tool only changes text and does not desensitize content. Content containing personal information must still be processed by yourself before sending it out.

String replacement

When you want to replace inconspicuous symbols such as spaces and punctuation, just write the symbols as they are.

📌 Common scenarios for symbol class replacement

When copying content from web pages or chat records, extra characters are often introduced: full-width spaces, consecutive spaces, spaces in Chinese brackets, spaces at the end of lines, etc. These characters are almost invisible to the naked eye, but can cause errors in subsequent processing. String replacement can handle them directly: replacing ", " with "," will remove the spaces after the comma, replacing " " with ordinary spaces will unify the space types, and replacing "(" with "(" will clean up the extra spaces in the brackets.

  • Unify the writing methods of full-width and half-width spaces and brackets
  • Clean up excess spaces before and after punctuation
  • Unify separators such as "," and "," into one

🧪 How to confirm that the symbol has really been replaced?

Symbols are difficult to distinguish with the naked eye, so you need to use other methods for verification: first, observe the change in the length of the result box. After removing excess spaces, the total number of characters should be reduced; second, copy the results to an editor that can display white spaces to view; third, replace the results back, such as replacing ordinary spaces with special marks, to see if there are any full-width spaces that have slipped through the network.

All keywords and tutorials 12

❓ FAQ

How to enter spaces
Just type a space in the input box; full-width spaces can be copied and pasted from the original text, ensuring that they are completely consistent with the original text.
Can you compress consecutive spaces into one?
Yes, replace two spaces with one space and repeat it several times to compress it; note that "replacing spaces with spaces" will not report an error but will not change.
What should I do if I want to replace even the spaces?
Just write the space as it is in the "character you want to replace"; you can also write it together with the punctuation, for example, replace ", " with ",".