Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Fidelity

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

1 Answer 1

up vote 2 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

Your Answer

 
discard

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.