3 ms·
I didn't really compare, since grep marks --perl as "highly experimental". pcregrep on the other hand is around for a long time already. One very useful featur
by shmerl 12y ago
I didn't really compare, since grep marks --perl as "highly experimental". pcregrep on the other hand is around for a long time already.
One very useful feature in pcregrep is outputting the matched subpattern only. For example if you do:
echo 'abcdefg' | pcregrep -o2 'a(bc)d(ef)g'
It will output only second matched subpattern.