Re: How to get truncated output from RegEx search

2019-04-22 Thread ThePorgie
If I'm understanding try Find: ((?s).+?) Replace: \1 On Monday, April 22, 2019 at 4:10:31 AM UTC-4, Gustave Stresen-Reuter wrote: > > Thanks to everyone. > > I had forgotten about bbfind but the solution I ended up using was what > Rich had suggested: Extract (and then a bit more processing

Re: How to get truncated output from RegEx search

2019-04-22 Thread Gustave Stresen-Reuter
Thanks to everyone. I had forgotten about bbfind but the solution I ended up using was what Rich had suggested: Extract (and then a bit more processing on the net result). Also, I had to fiddle a bit with the RegEx as it was being too greedy. I'm still struggling to attain expertise with

Re: How to get truncated output from RegEx search

2019-04-19 Thread Christopher Stone
On 04/19/2019, at 07:53, Gustave Stresen-Reuter mailto:tedmaster...@gmail.com>> wrote: > The problem here, though, is that the search results are sent to a search > results window. Is there any way to recreate the behavior of the grep command > above (the output is just the matching data with no

Re: How to get truncated output from RegEx search

2019-04-19 Thread Rich Siegel
On 4/19/19 at 8:53 AM, tedmaster...@gmail.com (Gustave Stresen-Reuter) wrote: The problem here, though, is that the search results are sent to a search results window. Is there any way to recreate the behavior of the grep command above (the output is just the matching data with no filename,

Re: How to get truncated output from RegEx search

2019-04-19 Thread Sam Hathaway
I know this isn’t exactly what you’re asking about, but I wanted to suggest using a tool that’s designed to work with XML rather than with line-oriented text. One such tool is [xml_grep2](https://metacpan.org/pod/distribution/App-xml_grep2/bin/xml_grep2). Installing it on macOS is a little

How to get truncated output from RegEx search

2019-04-19 Thread Gustave Stresen-Reuter
Hi, Given I've got dozens of folders with more than 1GB of XML documents in them, I'm doing the following grep search from the command line: grep -h -o -R -E '(\{|\[)\s*[a-z]+\s*([0-9]+)\s*(\|.+?)?(\}|\])' * | bbedit I'm then removing duplicates and sorting. This gives me a very nice list of