Why pcregrep version 7.8 doesn't support regular expression match groups?

Solution In Progress - Updated -

Issue

  • The pcre package that ships with RHEL6 is old.
  $ pcregrep --version
  pcregrep version 7.8 2008-09-05
  • It doesn't support regular expression match groups. Which newer version of the package will support for match groups?

  • The current version on RHEL6 does not have the "-onumber" option.

  • Requirement is to be able to print match groups to pipe it into another command.

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content