reference
Regular expression tips that can be used in VS Code - Nuggets
Regular matching of Chinese numbers_Xiaobean Sprouts Blog-CSDN Blog
the case
I want to join Chapter 704 before
condition
#搜索条件
#注意底下章后面有空格,这个是根据我的原文来定制的,原文里章节后面有空格
([\u4e00-\u9fa5\u767e\u5343\u96f6]{1,10}章 )
#或者
([\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341\u767e\u5343\u96f6]{1,10}章 )
#替换条件
第$1
result
- The regular pattern matches Chinese single digits,
\u4e00-\u9fa5
- Thousands of zeros
u767e\u5343\u96f6
- one two three four five six seven eight nine ten
\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341