Re: RFE: upgrade 'sed' RE's to include perlre syntax.

Paolo Bonzini <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <[email protected]>
Il 22/07/2014 10:24, Linda A. Walsh ha scritto:
> Both simple atoms such as "\d" for [0-9] or "\S" for non-space characters
> are supported in awk and have been added to grep with the -P switch.
> 
> Would it be possible to add a -P type switch to 'sed' so that
> pcre compat RE's could be used?

Yes, indeed part of the work is already done and part of the GNU sed
tarball (search for REG_PERL).  Though the option was -R, not -P.

Paolo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.