The longer string is like this:

 - [27/Mar/2014:11:06:59 -0700] "GET /public/search/?q=lunch+time+boot+vamp
HTTP/1.1" 200 18045 "http://www.example.com/public/minion/edit/177304";
"Mozilla/5.0 (Linux; U; Android 4.3; en-us; SCH-I535 Build/JSS15J)
AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30"


On Sun, May 11, 2014 at 9:05 PM, Christopher Stone <
[email protected]> wrote:

> On May 11, 2014, at 14:36, Lee Hinde <[email protected]> wrote:
> > I am parsing apache log files. This is the grep pattern I'm using:
> >
> > GET /public/search/\?q=(\w|\+|\.|-)+
> ______________________________________________________________________
>
> Hey Lee,
>
> When making these kinds of requests it's always better if you provide an
> actual sample of the data you're working with.
>
> Just looking at it I could say:
>
> Find:
>
> .*(GET /public/search/\?q=(\w|\+|\.|-)+).*
>
> Replace:
>
> \1
>
> But I'd much rather see the data and actually test my solution.
>
> For that matter this seems like a job for a Perl filter.
>
> --
> 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].
>

-- 
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