小编Shu*_*gwi的帖子

需要正则表达式来删除自定义标记标记

我之前没有写过正则表达式,而且我的知识严重不足.我希望这里的专家能够帮助我使用正则表达式,我可以在C#中使用它来仅删除标记标记.

标记有一个以下开始标记:<AI>!或<AH>!或<AG>!以另一个结束!

例: the quick brown <AI>!fox jumps! over the lazy dog!

删除标记后应该是: the quick brown fox jumps over the lazy dog!

代码片段:

    NOT MORE THAN 85 % OF H<AH>!3!BO<AH>!3! CALCULATED ON THE DRY WEIGHT
- Uranium ores and pitchblende, and concentrates thereof, with a uranium content of more than 5 % by weight (<AI>!Euratom!)
- Monazite; urano-thorianite and other thorium ores and concentrates, with a thorium content of more than 20 % …
Run Code Online (Sandbox Code Playgroud)

.net c# regex

2
推荐指数
1
解决办法
275
查看次数

标签 统计

.net ×1

c# ×1

regex ×1