Sujet : Re: "sed" question
De : geoff (at) *nospam* clare.See-My-Signature.invalid (Geoff Clare)
Groupes : comp.lang.awkDate : 13. Mar 2024, 14:57:33
Autres entêtes
Message-ID : <dvn8ck-pdr.ln1@ID-313840.user.individual.net>
References : 1 2 3 4 5
User-Agent : Pan/0.154 (Izium; 517acf4)
Aharon Robbins wrote:
In article <tv26ck-3qt.ln1@ID-313840.user.individual.net>,
Geoff Clare <netnews@gclare.org.uk> wrote:
POSIX requires that awk uses extended regular expressions (i.e. the
same as regcomp() with REG_EXTENDED).
There is the additional requirement that \ inside [....] can
be used to escape characters,
Yes, awk effectively has an extra "layer" of backslash escaping
before the ERE rules kick in, both inside and outside [....].
I didn't mention this so as not to overload the OP with
information - he seemed more interested in the different flavours
of RE than in nitty gritty details like that.
-- Geoff Clare <netnews@gclare.org.uk>