Hongmu Notes

✏️ Batch replacement of multiple contents

Write multiple "original text = new text" rules at one time and replace them one by one.

Instructions for use

  • The rules are written as "original text = new text", one line per line, arranged from most to least length.
  • The left side matches according to regular rules; empty left side and illegal regular rules will prompt
  • Leaving the new article blank is equivalent to deleting the hit content.

Batch whole word matching and replacement

Only change the complete word so that other words will not be changed at the same time.

source of problem

If not limited, the letter fragment inside the word will be hit.

When you replace a short abbreviation, you corrupt the long word that contains it.

Limited writing

Add word boundaries to the left side of the word to match only complete words.

Identical fragments inside the qualified word will not be hit.

Mixed Chinese and English

There are usually no word boundaries between Chinese words, and clear contextual qualifications need to be used instead.

Manuscripts that are mixed in Chinese and English are recommended to deal with the two types of rules separately.

symbols adjacent

Word boundaries also take effect when words are next to punctuation.

Hyphenated words need to adjust the rules according to the actual writing.

Check method

After editing, search the fragment to make sure the long words remain intact.

Check whether other words containing this fragment have been mistakenly changed.

All keywords and tutorials 12

❓ FAQ

Why do short words corrupt long words?
When not limited, the same fragment within the word will be hit, which can be avoided by adding word boundaries.
Can whole-word matching be used in Chinese too?
There are generally no word boundaries between Chinese words and they need to be clearly defined using contextual text.