例如:
“ Duden | wandeln | Rechtschreibung,Bedeutung,定义| entsenden | Rechtschreibung,Bedeutung(...)”
收件人:
“ wandeln 热情”
谢谢。
答案 0 :(得分:0)
使用notepad ++正则表达式
Find: ([^\|]+)?\|([^\|]+)\|([^\|]+)
Replace: $2
答案 1 :(得分:0)
^.+?\|\h*(.+?)\h*\|.+?\|\h*(.+?)\h*\|.*$
$1 $2
. matches newline
说明:
^ # beginning of line
.+? # 1 or more any character, not greedy
\| # 1 pipe character
\h* # 0 or more horizontal spaces
(.+?) # group 1, 1 or more any character, not greedy
\h* # 0 or more horizontal spaces
\| # 1 pipe character
.+? # 1 or more any character, not greedy
\| # 1 pipe character
\h* # 0 or more horizontal spaces
(.+?) # group 2, 1 or more any character, not greedy
\h* # 0 or more horizontal spaces
\| # 1 pipe character
.* # 0 or more any character
$ # end of line
替换:
$1 : content of group 1
: 1 space
$2 : content of group 2
给定示例的结果
wandeln entsenden