On May 12, 2014, at 11:08, Lee Hinde <[email protected]> wrote:
> The longer string is like this:
______________________________________________________________________

Hey Lee,

That makes it much easier.

This filter will remove all text except for what you want.

#! /usr/bin/env perl 
use v5.010; use strict; use warnings;

while (<>) {
        say $1 if ( m!.*(GET /public/search/\?q=(\w|\+|\.|-)+).*! );
}

The regex is between the two exclamation points and can be altered to suit.

Save the filter here:

~/Library/Application Support/BBEdit/Text Filters

Access via the menu {Text}-->{Apply Text Filter}

These are fast, flexible, and efficient.

I give often-used filters a keyboard shortcut, and I have a Keyboard Maestro to 
actually open the {Apply Text Filter} menu from whence I can type-select to 
access the filter I want.

--
Best Regards,
Chris

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.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 post to this group, send email to [email protected].

Reply via email to