3

In BBEdit (11.6.9), using find with grep checked on I'm looking for lines in a large file containing this pattern:

registeredTd="11/\d\d/2017

It stands for a registered date of November, 2017 in my file.

If I "find all" I get correctly see 69 occurrences of the pattern in the file i the results window.

But how, then, can I copy those found lines?

I can copy the results of the results window itself, but that copy (1) contains extra junk at the beginning and most importantly (2) does not contain the complete line. The lines in the result window are truncated.

Is there a way of copying all the complete lines containing the pattern?

Thanks,

doug

Doug Lerner
  • 1,383
  • 2
  • 17
  • 36

1 Answers1

6

For what it's worth, the answer to this was to use the Text > Process Lines Containing... menu. There you can enter the same registeredTd="11/\d\d/2017 search parameter, and there is a checkbox option to copy the lines with the search results. It works perfectly.

Doug Lerner
  • 1,383
  • 2
  • 17
  • 36
  • BBEdit is so good... I needed to find and copy all lines containing say ABC and used the above with: ^ABC(.?)*. – jono2010 Feb 28 '22 at 06:16