如何使用 Notepad++ 仅从 "Inverted Comma or Quotes" 内部提取文本

How to to extract texts only from inside of the "Inverted Comma or Quotes" by using Notepad++

我有一个文本文档。我只想使用 Notepadd++ 或任何网站从 "Inverted Comma or Quotes" 内部提取文本

例如:

Lorem "Football" ipsum dolor "Cricket" sit amet, consectetur "Tennis" adipiscing "Asia" sed do "Europe" tempor "North America" ut labore "South America" dolore "Australia" aliqua. Ut "Africa" ad minim veniam.

我只想从引号或引号中提取文本

Football Cricket Tennis Asia Europe North America South America Australia Africa

"Football" "Cricket" "Tennis" "Asia" "Europe" "North America" "South America" "Australia" "Africa"

那我能做什么?任何人都可以帮助我..?

(*SKIP)(*FAIL) 动词随心所欲,参见http://www.rexegg.com/regex-tricks.html

  • Ctrl+H
  • 查找内容:".+?" ?(*SKIP)(*FAIL)|.
  • 替换为:LEAVE EMPTY
  • 检查 环绕
  • 检查 正则表达式
  • 取消选中 . matches newline
  • 全部替换

解释:

".+?"       # string surrounded with quotes, you can use [“"'‘].+?[“"'‘] to process other quotes
 ?          # optional space
(*SKIP)     # skip what it was matching before
(*FAIL)     # force the failing of regex
  |           # OR
.           # 1 any character

截图(之前):

截图(后):