Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i want to extract a string which is between two quotation marks, deleting everything before and after the quotation marks, including themselves. For example this:

6 6 "The Socratic Method" Peter Medak John Mankiewicz 6.73[36] 50[36] December 21, 2004

7 7 "Fidelity" Bryan Spicer Thomas L. Moran 6.91[37] 53[37] December 28, 2004

should look like this afterwards:

The Socratic Method


is there a regular expression for NotePad++ to do so? Any other program which can do so would be ok, too. Thanks.

(And yes, those are Dr. House Episodes)^^

share|improve this question
Do you mean Notepad++ or Wordpad++? Its unclear – nixda Jul 26 '13 at 12:36
Oh, sorry i meant to say Notepad++ I would also accept an Editor with features comparable to AdvancedRenamer or AntRenamer, where you can select to delete a specific number of characters after a specific position (for example: delete 5 characters after position 10) – Rick Jul 26 '13 at 12:41
up vote 9 down vote accepted

Here you go: Find and Replace (Ctrl + H)

Find: .*"(.*)".*

Replace: \1

You need to select "Regular expression" as Search Mode.

enter image description here

share|improve this answer
Thank you, works like a charm! – Rick Jul 26 '13 at 12:51
@Radoo simply superb – Selva Aug 19 '15 at 5:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.