1

I have a text document. I want to extract texts only from inside of the "Inverted Comma or Quotes" by using Notepadd++ or any website

For Eg:

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.

I want to Extract texts only from inside of the Inverted Comma or Quotes

Football Cricket Tennis Asia Europe North America South America Australia Africa

OR

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

So what I can do? Anybody can help me.. ?

user2996362
  • 49
  • 1
  • 8

1 Answers1

1

The (*SKIP)(*FAIL) verbs do what you want, see http://www.rexegg.com/regex-tricks.html

  • Ctrl+H
  • Find what: ".+?" ?(*SKIP)(*FAIL)|.
  • Replace with: LEAVE EMPTY
  • CHECK Wrap around
  • CHECK Regular expression
  • UNCHECK . matches newline
  • Replace all

Explanation:

".+?"       # 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

Screenshot (before):

enter image description here

Screenshot (after):

enter image description here

Toto
  • 89,455
  • 62
  • 89
  • 125
  • Thanks for your reply. Can you paste all above codes together here ? – user2996362 Jun 19 '20 at 10:07
  • @user2996362: Sorry, I don't get you ! The regex is here. Just copy/paste it. – Toto Jun 19 '20 at 10:17
  • Can you paste above regex together. ? – user2996362 Jun 19 '20 at 15:30
  • I don't understand what you mean. What do you mean with “paste above regex together”? The regex is in the answer, just copy it and paste it in your Notepad++. What are you trying to do? I give you the solution of your problem, just use it. Just follow the seven step I gave you. – Toto Jun 19 '20 at 15:34
  • You know a solution for this? : https://stackoverflow.com/questions/62477359/how-can-i-extract-specific-texts-from-an-html-file-by-using-notepad-or-adobe-d – user2996362 Jun 20 '20 at 02:47