How to save only found lines of text to file"

Tool for Search and Replace across multiple files.
Post Reply
PiotrMP006
Posts: 7
Joined: Tue Jul 04, 2023 9:42 am

How to save only found lines of text to file"

Post by PiotrMP006 »

How to save only found lines of text to file"

ex "MOZ_.*"
User avatar
DigitalVolcano
Site Admin
Posts: 1737
Joined: Thu Jun 09, 2011 10:04 am

Re: How to save only found lines of text to file"

Post by DigitalVolcano »

You can use the Extract button to put the lines to the ScratchPad, then this can be saved.

To get line breaks in the extracted text, you may need to change your expression to one such as : "MOZ_.*\n"
PiotrMP006
Posts: 7
Joined: Tue Jul 04, 2023 9:42 am

Re: How to save only found lines of text to file"

Post by PiotrMP006 »

Where is the "Extract button"?
User avatar
DigitalVolcano
Site Admin
Posts: 1737
Joined: Thu Jun 09, 2011 10:04 am

Re: How to save only found lines of text to file"

Post by DigitalVolcano »

Next to the replace button. (Pro version only)

See manual "Action buttons" section
https://www.digitalvolcano.co.uk/textcr ... =&sct=MA==
Post Reply