On Thursday, February 27, 2020 at 5:33:45 AM UTC-8, Mohannad Mahmoud wrote:

I am trying to copy a search pattern to a new document. I am not sure this can be done in Canonize or Processing Lines Containing

Does this work for you?

\A.*?\n.*?\n.*?\n.*?\n.*?\n

Note that "Process Lines Containing" works on *lines*, and so any pattern that requires crossing line boundaries will never match.

However, assuming that you have a matching pattern (which you can easily test using a Pattern Playground or the Find window itself), the "Extract" button in the Find window may do what you need; leave the "Replace" field blank and click that button, and all of the matches for the pattern will be copied to a new window.

R.
--
Rich Siegel                                 Bare Bones Software, Inc.
<[email protected]>                      <https://www.barebones.com/>

Someday I'll look back on all this and laugh... until they sedate me.

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "[email protected]" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/r480Ps-10146i-3B5DB0619B0B4D42B76C6802F8C09233%40Stormwind.local.

Reply via email to