简体   繁体   English

Notepad ++:如何提取两个斜线之间的字符串?

[英]Notepad++: How to extract string between 2 slash?

I can match string between 2 slash with this regex 我可以用这个正则表达式匹配2个斜线之间的字符串

/.*/ /.*/

However, I want to extract that string. 但是,我想提取该字符串。 So, how to do that ? 那么,该怎么做呢? The string like this: 像这样的字符串:

youth (n) /ju:θ / nguyên hi 青年(n)/ ju:θ/nguyênhi

You can use capture group ( ) : 您可以使用捕获组( )

/(.*)/

And extract the required string with \\1 并用\\1提取所需的字符串

使用捕获组

/(.*)/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM