Re: pcregrep match groups

2009-10-22 Thread Dan Wallis
2009/10/16 Chris Allen : > smoothly with the least amount of code.  One thing in particular is > driving me crazy - I can't figure out how to output only the contents > of my match groups with pcregrep. I'm not familiar with pcregrep, nor is my answer related to Perl, but gnu grep has an -o or --m

Re: pcregrep match groups

2009-10-19 Thread Shlomi Fish
Hi Chris! On Friday 16 Oct 2009 22:55:04 Chris Allen wrote: > I'm using pcregrep in a pipeline to match some information for a > network monitoring system. PCRE is the not-so-Perl-compatible Regular Expression library. It's probably a pretty nice as a way to provide Perl-like (but different) r

pcregrep match groups

2009-10-18 Thread Chris Allen
I'm using pcregrep in a pipeline to match some information for a network monitoring system. I'm having a bit of a problem doing this smoothly with the least amount of code. One thing in particular is driving me crazy - I can't figure out how to output only the contents of my match groups with pcr