【发布时间】:2020-12-21 09:56:12
【问题描述】:
我需要将单词检测为“bot/hersen/levermetastase”并将它们转换为“botmetastase、hersenmetastase、levermetastase”。 但也可以将 'lever/botmetastase' 转换为 'levermetastase, botmetastase'。
所以我需要确保“单词/单词/单词转移”在数字上尽可能多变。
这是我的解决方案,但它不起作用。
过滤器:
\b(\w)\s*[\/]\s*(\w)\s*(metastase)\b
过滤器:
$1metastase, $2metastase, $3metastase
【问题讨论】:
-
你的问题不清楚。但关于你的正则表达式:\w 匹配单个单词字符,而不是一个单词(这是 \w+)。
标签: regex standardization