[英]Regex matching with a specific pattern
Can anyone help me match only ::
not :::
and replace it with newline \\n
in text editor Regex? 谁能帮我只匹配::
不匹配:::
并在文本编辑器Regex中将其替换为换行符\\n
?
Lepirudin,:::B01AE02
Lepirudin,:::B01AE02
Lepirudin,::Lepirudin,:::B01AE02
Desired Result: 所需结果:
Lepirudin,:::B01AE02
Lepirudin,:::B01AE02
Lepirudin,
Lepirudin,:::B01AE02
Thank you 谢谢
可以使用环视断言的:
(?<!:)::(?!:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.